mirror of
https://gitee.com/apiadmin/ApiAdmin.git
synced 2025-04-06 03:58:00 +08:00
modified 修复主键的BUG
This commit is contained in:
parent
a842c3fc41
commit
217da10fff
@ -79,7 +79,5 @@ class AdminApp extends Migrator {
|
||||
'comment' => '前台样式显示所需数据格式',
|
||||
'null' => true
|
||||
])->addIndex(['app_id'], ['unique' => true])->create();
|
||||
|
||||
$table->changeColumn('id', 'integer', ['signed' => false]);
|
||||
}
|
||||
}
|
||||
|
@ -56,7 +56,5 @@ class AdminAppGroup extends Migrator {
|
||||
'default' => '',
|
||||
'comment' => '组标识'
|
||||
])->create();
|
||||
|
||||
$table->changeColumn('id', 'integer', ['signed' => false]);
|
||||
}
|
||||
}
|
||||
|
@ -51,7 +51,5 @@ class AdminAuthGroup extends Migrator {
|
||||
'default' => 1,
|
||||
'comment' => '组状态:为1正常,为0禁用'
|
||||
])->create();
|
||||
|
||||
$table->changeColumn('id', 'integer', ['signed' => false]);
|
||||
}
|
||||
}
|
||||
|
@ -50,7 +50,5 @@ class AdminAuthGroupAccess extends Migrator {
|
||||
'default' => '',
|
||||
'comment' => ''
|
||||
])->addIndex(['uid'])->addIndex(['group_id'])->create();
|
||||
|
||||
$table->changeColumn('id', 'integer', ['signed' => false]);
|
||||
}
|
||||
}
|
||||
|
@ -59,7 +59,5 @@ class AdminAuthRule extends Migrator {
|
||||
'default' => 1,
|
||||
'comment' => '状态:为1正常,为0禁用'
|
||||
])->create();
|
||||
|
||||
$table->changeColumn('id', 'integer', ['signed' => false]);
|
||||
}
|
||||
}
|
||||
|
@ -83,7 +83,5 @@ class AdminFields extends Migrator {
|
||||
'default' => '',
|
||||
'comment' => 'wiki显示用字段'
|
||||
])->addIndex(['hash'])->create();
|
||||
|
||||
$table->changeColumn('id', 'integer', ['signed' => false]);
|
||||
}
|
||||
}
|
||||
|
@ -76,7 +76,5 @@ class AdminGroup extends Migrator {
|
||||
'default' => 0,
|
||||
'comment' => '分组热度'
|
||||
])->create();
|
||||
|
||||
$table->changeColumn('id', 'integer', ['signed' => false]);
|
||||
}
|
||||
}
|
||||
|
@ -88,7 +88,5 @@ class AdminList extends Migrator {
|
||||
'comment' => '当前接口所属的接口分组'
|
||||
])->addIndex(['hash'])->create();
|
||||
|
||||
$table->changeColumn('id', 'integer', ['signed' => false]);
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -77,7 +77,5 @@ class AdminMenu extends Migrator {
|
||||
'default' => 0,
|
||||
'comment' => '菜单认证等级'
|
||||
])->create();
|
||||
|
||||
$table->changeColumn('id', 'integer', ['signed' => false]);
|
||||
}
|
||||
}
|
||||
|
@ -79,7 +79,5 @@ class AdminUser extends Migrator
|
||||
'default' => '',
|
||||
'comment' => '三方登录唯一ID'
|
||||
])->addIndex(['create_time'])->create();
|
||||
|
||||
$table->changeColumn('id', 'integer', ['signed' => false]);
|
||||
}
|
||||
}
|
||||
|
@ -67,7 +67,5 @@ class AdminUserAction extends Migrator {
|
||||
'default' => 0,
|
||||
'comment' => '操作URL'
|
||||
])->addIndex(['uid'])->create();
|
||||
|
||||
$table->changeColumn('id', 'integer', ['signed' => false]);
|
||||
}
|
||||
}
|
||||
|
@ -64,7 +64,5 @@ class AdminUserData extends Migrator
|
||||
'null' => true,
|
||||
'comment' => '用户头像'
|
||||
])->addIndex(['uid'])->create();
|
||||
|
||||
$table->changeColumn('id', 'integer', ['signed' => false]);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user