mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-11-09 04:20:50 +08:00
chore(notice): 规范修复与安装演练收尾
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
use think\migration\Migrator;
|
||||
use think\migration\db\Column;
|
||||
use think\migration\Migrator;
|
||||
|
||||
/**
|
||||
* system_admin 追加电子邮箱字段(幂等,已存在则跳过).
|
||||
@@ -12,7 +12,7 @@ class SystemAdminEmail extends Migrator
|
||||
{
|
||||
$table = $this->table('system_admin');
|
||||
|
||||
if(!$table->hasColumn('email')){
|
||||
if (!$table->hasColumn('email')) {
|
||||
$table->addColumn(Column::char('email', 100)->setDefault('')->setComment('电子邮箱'));
|
||||
$table->update();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user