Fixed : #175 Error on install: Syntax error or access violation: 1071 Specified key was too long;
This commit is contained in:
@ -16,9 +16,9 @@ class CreateMediableTables extends Migration
|
||||
Schema::create('media', function (Blueprint $table) {
|
||||
$table->increments('id');
|
||||
$table->string('disk', 32);
|
||||
$table->string('directory');
|
||||
$table->string('filename');
|
||||
$table->string('extension', 32);
|
||||
$table->string('directory', 68);
|
||||
$table->string('filename', 121);
|
||||
$table->string('extension', 28);
|
||||
$table->string('mime_type', 128);
|
||||
$table->string('aggregate_type', 32);
|
||||
$table->integer('size')->unsigned();
|
||||
@ -32,9 +32,9 @@ class CreateMediableTables extends Migration
|
||||
|
||||
Schema::create('mediables', function (Blueprint $table) {
|
||||
$table->integer('media_id')->unsigned();
|
||||
$table->string('mediable_type');
|
||||
$table->string('mediable_type', 152);
|
||||
$table->integer('mediable_id')->unsigned();
|
||||
$table->string('tag');
|
||||
$table->string('tag', 68);
|
||||
$table->integer('order')->unsigned();
|
||||
|
||||
$table->primary(['media_id', 'mediable_type', 'mediable_id', 'tag']);
|
||||
|
Reference in New Issue
Block a user