Skip to content

Commit

Permalink
Set columns to nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
nWidart committed Sep 11, 2017
1 parent 90a34e5 commit 4bc024f
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ function (Blueprint $table) {
$table->increments('id');
$table->integer('file_id')->unsigned();
$table->string('locale')->index();
$table->string('description');
$table->string('alt_attribute');
$table->string('keywords');
$table->string('description')->nullable();
$table->string('alt_attribute')->nullable();
$table->string('keywords')->nullable();
$table->unique(['file_id', 'locale']);
$table->foreign('file_id')->references('id')->on('media__files')->onDelete('cascade');
}
Expand Down

0 comments on commit 4bc024f

Please sign in to comment.