mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-10-30 14:31:04 +00:00
优化数据库备注
This commit is contained in:
parent
1e783774c5
commit
df0fd9a47a
@ -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