@@ -10,7 +10,7 @@ discard block |
||
| 10 | 10 | */ |
| 11 | 11 | public function up() |
| 12 | 12 | { |
| 13 | - Schema::table('branches', function (Blueprint $table) { |
|
| 13 | + Schema::table('branches', function(Blueprint $table) { |
|
| 14 | 14 | $table->foreign('user_id', 'fk_branches_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('branches', function (Blueprint $table) { |
|
| 23 | + Schema::table('branches', function(Blueprint $table) { |
|
| 24 | 24 | $table->dropForeign('fk_branches_user_id'); |
| 25 | 25 | }); |
| 26 | 26 | } |
@@ -10,7 +10,7 @@ discard block |
||
| 10 | 10 | */ |
| 11 | 11 | public function up() |
| 12 | 12 | { |
| 13 | - Schema::table('issues_has_users', function (Blueprint $table) { |
|
| 13 | + Schema::table('issues_has_users', function(Blueprint $table) { |
|
| 14 | 14 | $table->foreign('issue_id', 'fk_issues_has_users_issue_id')->references('id')->on('issues')->onUpdate('NO ACTION')->onDelete('NO ACTION'); |
| 15 | 15 | $table->foreign('user_id', 'fk_issues_has_users_user_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('issues_has_users', function (Blueprint $table) { |
|
| 24 | + Schema::table('issues_has_users', function(Blueprint $table) { |
|
| 25 | 25 | $table->dropForeign('fk_issues_has_users_issue_id'); |
| 26 | 26 | $table->dropForeign('fk_issues_has_users_user_id'); |
| 27 | 27 | }); |
@@ -10,7 +10,7 @@ discard block |
||
| 10 | 10 | */ |
| 11 | 11 | public function up() |
| 12 | 12 | { |
| 13 | - Schema::table('labelables', function (Blueprint $table) { |
|
| 13 | + Schema::table('labelables', function(Blueprint $table) { |
|
| 14 | 14 | $table->foreign('label_id', 'fk_labelables_label_id')->references('id')->on('labels')->onUpdate('NO ACTION')->onDelete('NO ACTION'); |
| 15 | 15 | $table->foreign('user_id', 'fk_labelables_user_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('labelables', function (Blueprint $table) { |
|
| 24 | + Schema::table('labelables', function(Blueprint $table) { |
|
| 25 | 25 | $table->dropForeign('fk_labelables_label_id'); |
| 26 | 26 | $table->dropForeign('fk_labelables_user_id'); |
| 27 | 27 | }); |
@@ -10,7 +10,7 @@ discard block |
||
| 10 | 10 | */ |
| 11 | 11 | public function up() |
| 12 | 12 | { |
| 13 | - Schema::table('users_has_organizations', function (Blueprint $table) { |
|
| 13 | + Schema::table('users_has_organizations', function(Blueprint $table) { |
|
| 14 | 14 | $table->foreign('organization_id', 'fk_users_has_organizations_organization_id')->references('id')->on('organizations')->onUpdate('NO ACTION')->onDelete('NO ACTION'); |
| 15 | 15 | $table->foreign('user_id', 'fk_users_has_organizations_user_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('users_has_organizations', function (Blueprint $table) { |
|
| 24 | + Schema::table('users_has_organizations', function(Blueprint $table) { |
|
| 25 | 25 | $table->dropForeign('fk_users_has_organizations_organization_id'); |
| 26 | 26 | $table->dropForeign('fk_users_has_organizations_user_id'); |
| 27 | 27 | }); |
@@ -10,7 +10,7 @@ discard block |
||
| 10 | 10 | */ |
| 11 | 11 | public function up() |
| 12 | 12 | { |
| 13 | - Schema::table('comments', function (Blueprint $table) { |
|
| 13 | + Schema::table('comments', function(Blueprint $table) { |
|
| 14 | 14 | $table->foreign('user_id', 'fk_comments_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('comments', function (Blueprint $table) { |
|
| 23 | + Schema::table('comments', function(Blueprint $table) { |
|
| 24 | 24 | $table->dropForeign('fk_comments_user_id'); |
| 25 | 25 | }); |
| 26 | 26 | } |
@@ -10,7 +10,7 @@ |
||
| 10 | 10 | */ |
| 11 | 11 | public function up() |
| 12 | 12 | { |
| 13 | - Schema::create('users_has_organizations', function (Blueprint $table) { |
|
| 13 | + Schema::create('users_has_organizations', function(Blueprint $table) { |
|
| 14 | 14 | $table->increments('id'); |
| 15 | 15 | $table->integer('user_id')->unsigned()->nullable(); |
| 16 | 16 | $table->integer('organization_id')->unsigned()->nullable()->index('fk_users_has_organizations_organization_id_idx'); |
@@ -10,7 +10,7 @@ discard block |
||
| 10 | 10 | */ |
| 11 | 11 | public function up() |
| 12 | 12 | { |
| 13 | - Schema::table('commits', function (Blueprint $table) { |
|
| 13 | + Schema::table('commits', function(Blueprint $table) { |
|
| 14 | 14 | $table->foreign('branch_id', 'fk_commits_branch_id')->references('id')->on('branches')->onUpdate('NO ACTION')->onDelete('NO ACTION'); |
| 15 | 15 | $table->foreign('issue_id', 'fk_commits_issue_id')->references('id')->on('issues')->onUpdate('NO ACTION')->onDelete('NO ACTION'); |
| 16 | 16 | $table->foreign('product_backlog_id', 'fk_commits_product_backlog_id')->references('id')->on('product_backlogs')->onUpdate('NO ACTION')->onDelete('NO ACTION'); |
@@ -23,7 +23,7 @@ discard block |
||
| 23 | 23 | */ |
| 24 | 24 | public function down() |
| 25 | 25 | { |
| 26 | - Schema::table('commits', function (Blueprint $table) { |
|
| 26 | + Schema::table('commits', function(Blueprint $table) { |
|
| 27 | 27 | $table->dropForeign('fk_commits_branch_id'); |
| 28 | 28 | $table->dropForeign('fk_commits_issue_id'); |
| 29 | 29 | $table->dropForeign('fk_commits_product_backlog_id'); |
@@ -10,7 +10,7 @@ discard block |
||
| 10 | 10 | */ |
| 11 | 11 | public function up() |
| 12 | 12 | { |
| 13 | - Schema::table('user_stats', function (Blueprint $table) { |
|
| 13 | + Schema::table('user_stats', function(Blueprint $table) { |
|
| 14 | 14 | $table->foreign('user_id', 'fk_user_stats_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('user_stats', function (Blueprint $table) { |
|
| 23 | + Schema::table('user_stats', function(Blueprint $table) { |
|
| 24 | 24 | $table->dropForeign('fk_user_stats_user_id'); |
| 25 | 25 | }); |
| 26 | 26 | } |
@@ -10,7 +10,7 @@ |
||
| 10 | 10 | */ |
| 11 | 11 | public function up() |
| 12 | 12 | { |
| 13 | - Schema::create('issues_has_users', function (Blueprint $table) { |
|
| 13 | + Schema::create('issues_has_users', function(Blueprint $table) { |
|
| 14 | 14 | $table->increments('id'); |
| 15 | 15 | $table->integer('user_id')->unsigned()->nullable()->index('fk_issues_has_users_user_id_idx'); |
| 16 | 16 | $table->integer('issue_id')->unsigned()->nullable()->index('fk_issues_has_users_issue_id_idx'); |