Fixed : #175 Error on install: Syntax error or access violation: 1071 Specified key was too long;

This commit is contained in:
cuneytsenturk
2018-01-13 17:52:50 +03:00
parent b22885b820
commit 0d495fe21e
3 changed files with 31 additions and 20 deletions

View File

@ -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']);