@@ -12,7 +12,7 @@ discard block |
||
12 | 12 | */ |
13 | 13 | public function up() |
14 | 14 | { |
15 | - Schema::table('organization', function (Blueprint $table) { |
|
15 | + Schema::table('organization', function(Blueprint $table) { |
|
16 | 16 | $table->foreign('head', 'organization_ibfk_1')->references('id')->on('users')->onUpdate('NO ACTION')->onDelete('NO ACTION'); |
17 | 17 | }); |
18 | 18 | } |
@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | */ |
25 | 25 | public function down() |
26 | 26 | { |
27 | - Schema::table('organization', function (Blueprint $table) { |
|
27 | + Schema::table('organization', function(Blueprint $table) { |
|
28 | 28 | $table->dropForeign('organization_ibfk_1'); |
29 | 29 | }); |
30 | 30 | } |
@@ -12,7 +12,7 @@ |
||
12 | 12 | */ |
13 | 13 | public function up() |
14 | 14 | { |
15 | - Schema::create('kb_pages', function (Blueprint $table) { |
|
15 | + Schema::create('kb_pages', function(Blueprint $table) { |
|
16 | 16 | $table->increments('id'); |
17 | 17 | $table->string('name'); |
18 | 18 | $table->boolean('status'); |
@@ -12,7 +12,7 @@ |
||
12 | 12 | */ |
13 | 13 | public function up() |
14 | 14 | { |
15 | - Schema::create('field_values', function (Blueprint $table) { |
|
15 | + Schema::create('field_values', function(Blueprint $table) { |
|
16 | 16 | $table->increments('id'); |
17 | 17 | $table->integer('field_id')->nullable()->unsigned(); |
18 | 18 | $table->foreign('field_id')->references('id')->on('custom_form_fields'); |
@@ -12,7 +12,7 @@ |
||
12 | 12 | */ |
13 | 13 | public function up() |
14 | 14 | { |
15 | - Schema::create('user_additional_infos', function (Blueprint $table) { |
|
15 | + Schema::create('user_additional_infos', function(Blueprint $table) { |
|
16 | 16 | $table->increments('id'); |
17 | 17 | $table->integer('owner'); |
18 | 18 | $table->string('service'); |
@@ -12,7 +12,7 @@ |
||
12 | 12 | */ |
13 | 13 | public function up() |
14 | 14 | { |
15 | - Schema::create('conditions', function (Blueprint $table) { |
|
15 | + Schema::create('conditions', function(Blueprint $table) { |
|
16 | 16 | $table->increments('id'); |
17 | 17 | $table->string('job'); |
18 | 18 | $table->string('value'); |
@@ -12,7 +12,7 @@ discard block |
||
12 | 12 | */ |
13 | 13 | public function up() |
14 | 14 | { |
15 | - Schema::table('emails', function (Blueprint $table) { |
|
15 | + Schema::table('emails', function(Blueprint $table) { |
|
16 | 16 | $table->foreign('department', 'emails_ibfk_1')->references('id')->on('department')->onUpdate('NO ACTION')->onDelete('RESTRICT'); |
17 | 17 | $table->foreign('priority', 'emails_ibfk_2')->references('priority_id')->on('ticket_priority')->onUpdate('NO ACTION')->onDelete('RESTRICT'); |
18 | 18 | $table->foreign('help_topic', 'emails_ibfk_3')->references('id')->on('help_topic')->onUpdate('NO ACTION')->onDelete('RESTRICT'); |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | */ |
27 | 27 | public function down() |
28 | 28 | { |
29 | - Schema::table('emails', function (Blueprint $table) { |
|
29 | + Schema::table('emails', function(Blueprint $table) { |
|
30 | 30 | $table->dropForeign('emails_ibfk_1'); |
31 | 31 | $table->dropForeign('emails_ibfk_2'); |
32 | 32 | $table->dropForeign('emails_ibfk_3'); |
@@ -12,7 +12,7 @@ discard block |
||
12 | 12 | */ |
13 | 13 | public function up() |
14 | 14 | { |
15 | - Schema::create('workflow_rules', function (Blueprint $table) { |
|
15 | + Schema::create('workflow_rules', function(Blueprint $table) { |
|
16 | 16 | $table->increments('id'); |
17 | 17 | $table->integer('workflow_id')->unsigned(); |
18 | 18 | $table->string('matching_criteria'); |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | $table->timestamps(); |
23 | 23 | }); |
24 | 24 | |
25 | - Schema::table('workflow_rules', function (Blueprint $table) { |
|
25 | + Schema::table('workflow_rules', function(Blueprint $table) { |
|
26 | 26 | $table->foreign('workflow_id', 'workflow_rules_1')->references('id')->on('workflow_name')->onUpdate('NO ACTION')->onDelete('RESTRICT'); |
27 | 27 | }); |
28 | 28 | } |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | */ |
35 | 35 | public function down() |
36 | 36 | { |
37 | - Schema::table('workflow_rules', function (Blueprint $table) { |
|
37 | + Schema::table('workflow_rules', function(Blueprint $table) { |
|
38 | 38 | $table->dropForeign('workflow_rules_1'); |
39 | 39 | }); |
40 | 40 | Schema::drop('workflow_rules'); |
@@ -12,7 +12,7 @@ |
||
12 | 12 | */ |
13 | 13 | public function up() |
14 | 14 | { |
15 | - Schema::create('ticket_source', function (Blueprint $table) { |
|
15 | + Schema::create('ticket_source', function(Blueprint $table) { |
|
16 | 16 | $table->increments('id'); |
17 | 17 | $table->string('name'); |
18 | 18 | $table->string('value'); |
@@ -12,7 +12,7 @@ |
||
12 | 12 | */ |
13 | 13 | public function up() |
14 | 14 | { |
15 | - Schema::create('settings_auto_response', function (Blueprint $table) { |
|
15 | + Schema::create('settings_auto_response', function(Blueprint $table) { |
|
16 | 16 | $table->increments('id'); |
17 | 17 | $table->boolean('new_ticket'); |
18 | 18 | $table->boolean('agent_new_ticket'); |