mirror of
https://github.com/flarum/framework.git
synced 2025-01-30 09:16:30 +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
b618c6d670
commit
900a0487b4
|
@ -14,9 +14,9 @@ class CreatePermissionsTable extends Migration {
|
|||
{
|
||||
Schema::create('permissions', function($table)
|
||||
{
|
||||
$table->string('grantee');
|
||||
$table->string('entity');
|
||||
$table->string('permission');
|
||||
$table->string('grantee', 100);
|
||||
$table->string('entity', 100);
|
||||
$table->string('permission', 100);
|
||||
$table->primary(['grantee', 'entity', 'permission']);
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user