备份设置

This commit is contained in:
孟凡懂 2022-06-07 09:42:25 +08:00
parent 8c61a43479
commit 851563390f

View File

@ -1,43 +1,40 @@
<?php
return array(
array(
'name' => 'backupDir',
'title' => '备份存放目录',
'type' => 'string',
'content' =>
array(),
'value' => '../data/',
'rule' => 'required',
'msg' => '',
'tip' => '备份目录,请使用相对目录',
'ok' => '',
'extend' => '',
),
array(
'name' => 'backupIgnoreTables',
'title' => '备份忽略的表',
'type' => 'string',
'content' =>
array(),
'value' => 'fa_admin_log',
'rule' => '',
'msg' => '',
'tip' => '忽略备份的表,多个表以,进行分隔',
'ok' => '',
'extend' => '',
),
array(
'name' => '__tips__',
'title' => '温馨提示',
'type' => '',
'content' =>
array(),
'value' => '请做好数据库离线备份工作,建议此插件仅用于开发阶段,项目正式上线建议卸载此插件',
'rule' => '',
'msg' => '',
'tip' => '',
'ok' => '',
'extend' => '',
),
);
return [
[
'name' => 'backupDir',
'title' => '备份存放目录',
'type' => 'string',
'content' => [],
'value' => '../data/',
'rule' => 'required',
'msg' => '',
'tip' => '备份目录,请使用相对目录',
'ok' => '',
'extend' => '',
],
[
'name' => 'backupIgnoreTables',
'title' => '备份忽略的表',
'type' => 'string',
'content' => [],
'value' => 'fa_admin_log',
'rule' => '',
'msg' => '',
'tip' => '忽略备份的表,多个表以,进行分隔',
'ok' => '',
'extend' => '',
],
[
'name' => '__tips__',
'title' => '温馨提示',
'type' => '',
'content' => [],
'value' => '请做好数据库离线备份工作,建议此插件仅用于开发阶段,项目正式上线建议卸载此插件',
'rule' => '',
'msg' => '',
'tip' => '',
'ok' => '',
'extend' => '',
],
];