@@ -10,7 +10,7 @@ discard block |
||
| 10 | 10 | */ |
| 11 | 11 | public function up() |
| 12 | 12 | { |
| 13 | - Schema::table('labels', function (Blueprint $table) { |
|
| 13 | + Schema::table('labels', function(Blueprint $table) { |
|
| 14 | 14 | $table->foreign('user_id', 'fk_labels_user_id')->references('id')->on('users')->onUpdate('NO ACTION')->onDelete('NO ACTION'); |
| 15 | 15 | }); |
| 16 | 16 | } |
@@ -20,7 +20,7 @@ discard block |
||
| 20 | 20 | */ |
| 21 | 21 | public function down() |
| 22 | 22 | { |
| 23 | - Schema::table('labels', function (Blueprint $table) { |
|
| 23 | + Schema::table('labels', function(Blueprint $table) { |
|
| 24 | 24 | $table->dropForeign('fk_labels_user_id'); |
| 25 | 25 | }); |
| 26 | 26 | } |
@@ -10,7 +10,7 @@ |
||
| 10 | 10 | */ |
| 11 | 11 | public function up() |
| 12 | 12 | { |
| 13 | - Schema::create('user_stories', function (Blueprint $table) { |
|
| 13 | + Schema::create('user_stories', function(Blueprint $table) { |
|
| 14 | 14 | $table->increments('id'); |
| 15 | 15 | $table->integer('user_id')->unsigned()->nullable()->index('fk_user_stories_user_id_idx'); |
| 16 | 16 | $table->integer('parent_id')->unsigned()->nullable(); |
@@ -10,7 +10,7 @@ |
||
| 10 | 10 | */ |
| 11 | 11 | public function up() |
| 12 | 12 | { |
| 13 | - Schema::create('attachments', function (Blueprint $table) { |
|
| 13 | + Schema::create('attachments', function(Blueprint $table) { |
|
| 14 | 14 | $table->increments('id'); |
| 15 | 15 | $table->string('attachmentable_type', 45)->nullable(); |
| 16 | 16 | $table->integer('attachmentable_id')->unsigned()->nullable(); |
@@ -10,7 +10,7 @@ |
||
| 10 | 10 | */ |
| 11 | 11 | public function up() |
| 12 | 12 | { |
| 13 | - Schema::create('labels', function (Blueprint $table) { |
|
| 13 | + Schema::create('labels', function(Blueprint $table) { |
|
| 14 | 14 | $table->increments('id'); |
| 15 | 15 | $table->integer('user_id')->unsigned()->nullable()->index('fk_labels_user_id_idx'); |
| 16 | 16 | $table->string('slug', 60)->nullable()->unique('labels_slug'); |
@@ -10,7 +10,7 @@ |
||
| 10 | 10 | */ |
| 11 | 11 | public function up() |
| 12 | 12 | { |
| 13 | - Schema::create('issues', function (Blueprint $table) { |
|
| 13 | + Schema::create('issues', function(Blueprint $table) { |
|
| 14 | 14 | $table->increments('id'); |
| 15 | 15 | $table->integer('parent_id')->unsigned()->nullable(); |
| 16 | 16 | $table->bigInteger('github_id')->unsigned()->nullable(); |
@@ -10,7 +10,7 @@ discard block |
||
| 10 | 10 | */ |
| 11 | 11 | public function up() |
| 12 | 12 | { |
| 13 | - Schema::table('commit_files', function (Blueprint $table) { |
|
| 13 | + Schema::table('commit_files', function(Blueprint $table) { |
|
| 14 | 14 | $table->foreign('commit_id', 'fk_commit_files_commit_id')->references('id')->on('commits')->onUpdate('NO ACTION')->onDelete('NO ACTION'); |
| 15 | 15 | }); |
| 16 | 16 | } |
@@ -20,7 +20,7 @@ discard block |
||
| 20 | 20 | */ |
| 21 | 21 | public function down() |
| 22 | 22 | { |
| 23 | - Schema::table('commit_files', function (Blueprint $table) { |
|
| 23 | + Schema::table('commit_files', function(Blueprint $table) { |
|
| 24 | 24 | $table->dropForeign('fk_commit_files_commit_id'); |
| 25 | 25 | }); |
| 26 | 26 | } |
@@ -10,7 +10,7 @@ |
||
| 10 | 10 | */ |
| 11 | 11 | public function up() |
| 12 | 12 | { |
| 13 | - Schema::create('user_stats', function (Blueprint $table) { |
|
| 13 | + Schema::create('user_stats', function(Blueprint $table) { |
|
| 14 | 14 | $table->increments('id'); |
| 15 | 15 | $table->integer('user_id')->unsigned()->nullable()->index('fk_user_stats_user_id_idx'); |
| 16 | 16 | $table->integer('code_lines')->unsigned()->nullable(); |
@@ -10,7 +10,7 @@ |
||
| 10 | 10 | */ |
| 11 | 11 | public function up() |
| 12 | 12 | { |
| 13 | - Schema::create('commit_files', function (Blueprint $table) { |
|
| 13 | + Schema::create('commit_files', function(Blueprint $table) { |
|
| 14 | 14 | $table->increments('id'); |
| 15 | 15 | $table->integer('commit_id')->unsigned()->nullable()->index('fk_commit_files_commit_id_idx'); |
| 16 | 16 | $table->string('sha')->nullable(); |
@@ -10,7 +10,7 @@ |
||
| 10 | 10 | */ |
| 11 | 11 | public function up() |
| 12 | 12 | { |
| 13 | - Schema::create('config_priorities', function (Blueprint $table) { |
|
| 13 | + Schema::create('config_priorities', function(Blueprint $table) { |
|
| 14 | 14 | $table->increments('id'); |
| 15 | 15 | $table->string('slug', 60)->nullable(); |
| 16 | 16 | $table->string('type', 45)->nullable(); |