Set columns to nullable

parent 90a34e59
...@@ -19,9 +19,9 @@ class CreateFileTranslationsTable extends Migration ...@@ -19,9 +19,9 @@ class CreateFileTranslationsTable extends Migration
$table->increments('id'); $table->increments('id');
$table->integer('file_id')->unsigned(); $table->integer('file_id')->unsigned();
$table->string('locale')->index(); $table->string('locale')->index();
$table->string('description'); $table->string('description')->nullable();
$table->string('alt_attribute'); $table->string('alt_attribute')->nullable();
$table->string('keywords'); $table->string('keywords')->nullable();
$table->unique(['file_id', 'locale']); $table->unique(['file_id', 'locale']);
$table->foreign('file_id')->references('id')->on('media__files')->onDelete('cascade'); $table->foreign('file_id')->references('id')->on('media__files')->onDelete('cascade');
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment