Skip to content
This repository has been archived by the owner on Apr 27, 2021. It is now read-only.

Commit

Permalink
Decreased string length for file_uploads migration for utf8mb4
Browse files Browse the repository at this point in the history
255 lengths shortened to 191
  • Loading branch information
Coen Zimmerman committed Feb 16, 2018
1 parent 5fcbf27 commit 8d50a29
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions migrations/2017_04_11_000001_create_file_uploads_table.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ public function up()
{
Schema::create($this->prefixCmsTable('file_uploads'), function (Blueprint $table) {
$table->increments('id');
$table->string('reference', 255)->nullable()->index();
$table->string('name', 255)->nullable();
$table->string('reference', 191)->nullable()->index();
$table->string('name', 191)->nullable();
$table->text('path')->nullable();
$table->string('uploader', 255)->nullable();
$table->string('uploader', 191)->nullable();
$table->integer('file_size')->unsigned()->nullable();
$table->nullableTimestamps();
});
Expand Down

0 comments on commit 8d50a29

Please sign in to comment.