@@ -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(); |
@@ -10,7 +10,7 @@ discard block |
||
| 10 | 10 | */ |
| 11 | 11 | public function up() |
| 12 | 12 | { |
| 13 | - Schema::table('notes', function (Blueprint $table) { |
|
| 13 | + Schema::table('notes', function(Blueprint $table) { |
|
| 14 | 14 | $table->foreign('user_id', 'fk_notes_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('notes', function (Blueprint $table) { |
|
| 23 | + Schema::table('notes', function(Blueprint $table) { |
|
| 24 | 24 | $table->dropForeign('fk_notes_user_id'); |
| 25 | 25 | }); |
| 26 | 26 | } |
@@ -10,7 +10,7 @@ |
||
| 10 | 10 | */ |
| 11 | 11 | public function up() |
| 12 | 12 | { |
| 13 | - Schema::create('notes', function (Blueprint $table) { |
|
| 13 | + Schema::create('notes', function(Blueprint $table) { |
|
| 14 | 14 | $table->increments('id'); |
| 15 | 15 | $table->integer('user_id')->unsigned()->nullable()->index('fk_notes_user_id_idx'); |
| 16 | 16 | $table->string('noteable_type', 45)->nullable(); |
@@ -10,7 +10,7 @@ |
||
| 10 | 10 | */ |
| 11 | 11 | public function up() |
| 12 | 12 | { |
| 13 | - Schema::create('config_statuses', function (Blueprint $table) { |
|
| 13 | + Schema::create('config_statuses', function(Blueprint $table) { |
|
| 14 | 14 | $table->increments('id'); |
| 15 | 15 | $table->string('slug', 60)->nullable()->default('null')->index('config_statuses_slug'); |
| 16 | 16 | $table->string('type', 45)->nullable(); |
@@ -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 | } |