@@ -10,7 +10,7 @@ discard block |
||
| 10 | 10 | */ |
| 11 | 11 | public function up() |
| 12 | 12 | { |
| 13 | - Schema::table('statuses', function (Blueprint $table) { |
|
| 13 | + Schema::table('statuses', function(Blueprint $table) { |
|
| 14 | 14 | $table->foreign('config_status_id', 'fk_statuses_config_status_id')->references('id')->on('config_statuses')->onUpdate('NO ACTION')->onDelete('NO ACTION'); |
| 15 | 15 | $table->foreign('user_id', 'fk_statuses_users_id')->references('id')->on('users')->onUpdate('NO ACTION')->onDelete('NO ACTION'); |
| 16 | 16 | }); |
@@ -21,7 +21,7 @@ discard block |
||
| 21 | 21 | */ |
| 22 | 22 | public function down() |
| 23 | 23 | { |
| 24 | - Schema::table('statuses', function (Blueprint $table) { |
|
| 24 | + Schema::table('statuses', function(Blueprint $table) { |
|
| 25 | 25 | $table->dropForeign('fk_statuses_config_status_id'); |
| 26 | 26 | $table->dropForeign('fk_statuses_users_id'); |
| 27 | 27 | }); |
@@ -10,7 +10,7 @@ |
||
| 10 | 10 | */ |
| 11 | 11 | public function up() |
| 12 | 12 | { |
| 13 | - Schema::create('statuses', function (Blueprint $table) { |
|
| 13 | + Schema::create('statuses', function(Blueprint $table) { |
|
| 14 | 14 | $table->increments('id'); |
| 15 | 15 | $table->string('statusesable_type', 45)->nullable(); |
| 16 | 16 | $table->integer('statusesable_id')->unsigned()->nullable(); |
@@ -10,7 +10,7 @@ |
||
| 10 | 10 | */ |
| 11 | 11 | public function up() |
| 12 | 12 | { |
| 13 | - Schema::create('issue_types', function (Blueprint $table) { |
|
| 13 | + Schema::create('issue_types', function(Blueprint $table) { |
|
| 14 | 14 | $table->increments('id'); |
| 15 | 15 | $table->integer('parent_id')->unsigned()->nullable(); |
| 16 | 16 | $table->string('slug', 60)->nullable(); |
@@ -10,7 +10,7 @@ |
||
| 10 | 10 | */ |
| 11 | 11 | public function up() |
| 12 | 12 | { |
| 13 | - Schema::create('config_issue_efforts', function (Blueprint $table) { |
|
| 13 | + Schema::create('config_issue_efforts', function(Blueprint $table) { |
|
| 14 | 14 | $table->increments('id'); |
| 15 | 15 | $table->string('title', 25)->nullable(); |
| 16 | 16 | $table->decimal('effort', 10)->nullable(); |
@@ -10,7 +10,7 @@ |
||
| 10 | 10 | */ |
| 11 | 11 | public function up() |
| 12 | 12 | { |
| 13 | - Schema::create('pull_requests_has_commits', function (Blueprint $table) { |
|
| 13 | + Schema::create('pull_requests_has_commits', function(Blueprint $table) { |
|
| 14 | 14 | $table->increments('id'); |
| 15 | 15 | $table->integer('pull_request_id')->unsigned()->nullable()->index('fk_pull_requests_has_commits_pull_request_id_idx'); |
| 16 | 16 | $table->integer('commit_id')->unsigned()->nullable()->index('fk_pull_requests_has_commits_commit_id_idx'); |
@@ -10,7 +10,7 @@ discard block |
||
| 10 | 10 | */ |
| 11 | 11 | public function up() |
| 12 | 12 | { |
| 13 | - Schema::table('attachments', function (Blueprint $table) { |
|
| 13 | + Schema::table('attachments', function(Blueprint $table) { |
|
| 14 | 14 | $table->foreign('user_id', 'fk_attachments_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('attachments', function (Blueprint $table) { |
|
| 23 | + Schema::table('attachments', function(Blueprint $table) { |
|
| 24 | 24 | $table->dropForeign('fk_attachments_user_id'); |
| 25 | 25 | }); |
| 26 | 26 | } |
@@ -10,7 +10,7 @@ |
||
| 10 | 10 | */ |
| 11 | 11 | public function up() |
| 12 | 12 | { |
| 13 | - Schema::create('commit_file_phpcs', function (Blueprint $table) { |
|
| 13 | + Schema::create('commit_file_phpcs', function(Blueprint $table) { |
|
| 14 | 14 | $table->increments('id'); |
| 15 | 15 | $table->integer('commit_file_id')->unsigned()->nullable()->index('fk_commit_file_phpcs_commit_file_id_idx'); |
| 16 | 16 | $table->integer('line')->unsigned()->nullable(); |
@@ -10,7 +10,7 @@ |
||
| 10 | 10 | */ |
| 11 | 11 | public function up() |
| 12 | 12 | { |
| 13 | - Schema::create('organizations', function (Blueprint $table) { |
|
| 13 | + Schema::create('organizations', function(Blueprint $table) { |
|
| 14 | 14 | $table->increments('id'); |
| 15 | 15 | $table->bigInteger('github_id')->unsigned()->nullable()->unique('github_id_UNIQUE'); |
| 16 | 16 | $table->string('username')->nullable()->index('login'); |
@@ -10,7 +10,7 @@ |
||
| 10 | 10 | */ |
| 11 | 11 | public function up() |
| 12 | 12 | { |
| 13 | - Schema::create('branches', function (Blueprint $table) { |
|
| 13 | + Schema::create('branches', function(Blueprint $table) { |
|
| 14 | 14 | $table->increments('id'); |
| 15 | 15 | $table->integer('user_id')->unsigned()->nullable()->index('fk_branches_user_id_idx'); |
| 16 | 16 | $table->integer('product_backlog_id')->unsigned()->nullable(); |