mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-07 02:22:48 +08:00
数据库安装文件增加file例子字段
This commit is contained in:
@@ -15,8 +15,8 @@ use think\facade\View;
|
||||
|
||||
class Migrate extends Command
|
||||
{
|
||||
|
||||
protected $table;
|
||||
protected $database;
|
||||
protected $tablePrefix;
|
||||
|
||||
protected function configure()
|
||||
@@ -171,7 +171,7 @@ class Migrate extends Command
|
||||
} else {
|
||||
$table_keys[] = $column['Field'];
|
||||
}
|
||||
} else if ($key == 'UNI') {
|
||||
} elseif ($key == 'UNI') {
|
||||
$table_keys_uni[] = $column['Field'];
|
||||
}
|
||||
}
|
||||
@@ -196,11 +196,11 @@ class Migrate extends Command
|
||||
|
||||
foreach ($column_item_set['options'] as $key => $option) {
|
||||
|
||||
if(is_array($option)){
|
||||
if(is_array($option)) {
|
||||
|
||||
$column_item_set['options'][$key] = "[".implode(',',$option)."]";
|
||||
|
||||
}else{
|
||||
$column_item_set['options'][$key] = "[".implode(',', $option)."]";
|
||||
|
||||
} else {
|
||||
$column_item_set['options'][$key] = "'{$option}'";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user