mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-11-03 00:10:38 +00:00
Merge branch 'v5.0.0dev' of https://gitee.com/ZhongBangKeJi/CRMEB into v5.0.0dev
This commit is contained in:
commit
95c1246ad1
@ -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'";
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user