mirror of
https://github.com/flarum/framework.git
synced 2024-11-23 21:19:18 +08:00
"Specified key was too long" fix.
[Illuminate\Database\QueryException] SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 1000 bytes (SQL: alter table `permissions` add primary key perm issions_grantee_entity_permission_primary(`grantee`, `entity`, `permission`))
This commit is contained in:
parent
276e0ce388
commit
d1344492ce
|
@ -14,9 +14,9 @@ class CreatePermissionsTable extends Migration {
|
||||||
{
|
{
|
||||||
Schema::create('permissions', function($table)
|
Schema::create('permissions', function($table)
|
||||||
{
|
{
|
||||||
$table->string('grantee');
|
$table->string('grantee', 100);
|
||||||
$table->string('entity');
|
$table->string('entity', 100);
|
||||||
$table->string('permission');
|
$table->string('permission', 100);
|
||||||
$table->primary(['grantee', 'entity', 'permission']);
|
$table->primary(['grantee', 'entity', 'permission']);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user