mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
Update 20221013031925_system_auth.php
This commit is contained in:
parent
dd81cbf778
commit
ffbb29512f
@ -7,16 +7,17 @@ use think\migration\Migrator;
|
|||||||
*/
|
*/
|
||||||
class SystemAuth extends Migrator
|
class SystemAuth extends Migrator
|
||||||
{
|
{
|
||||||
private $name = 'system_auth';
|
|
||||||
|
|
||||||
public function change()
|
public function change()
|
||||||
{
|
{
|
||||||
|
// 当前操作
|
||||||
|
$table = 'system_auth';
|
||||||
|
|
||||||
// 存在则跳过
|
// 存在则跳过
|
||||||
if ($this->hasTable($this->name)) {
|
if ($this->hasTable($table)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// 创建数据表
|
// 创建数据表
|
||||||
$this->table($this->name, [
|
$this->table($table, [
|
||||||
'engine' => 'InnoDB', 'collation' => 'utf8mb4_general_ci', 'comment' => '系统-权限',
|
'engine' => 'InnoDB', 'collation' => 'utf8mb4_general_ci', 'comment' => '系统-权限',
|
||||||
])
|
])
|
||||||
->addColumn('title', 'string', ['limit' => 80, 'default' => '', 'comment' => '权限名称'])
|
->addColumn('title', 'string', ['limit' => 80, 'default' => '', 'comment' => '权限名称'])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user