Merge branch 'v5.0.0dev' of https://gitee.com/ZhongBangKeJi/CRMEB into v5.0.0dev

This commit is contained in:
liaofei 2023-04-12 09:32:38 +08:00
commit 95c1246ad1

View File

@ -63,13 +63,14 @@ class SystemDatabackup extends AuthController
*/
public function updateMark()
{
[$table, $field, $type, $mark] = $this->request->postMore([
[$table, $field, $type, $mark, $is_field] = $this->request->postMore([
['table', ''],
['field', ''],
['type', ''],
['mark', ''],
['is_field', 0],
], true);
if ($field == '') {
if ($is_field == 0) {
$sql = "ALTER TABLE $table COMMENT '$mark'";
} else {
$sql = "ALTER TABLE $table MODIFY COLUMN $field $type COMMENT '$mark'";