@@ -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'); |
@@ -12,7 +12,7 @@ |
||
12 | 12 | */ |
13 | 13 | public function up() |
14 | 14 | { |
15 | - Schema::create('template', function (Blueprint $table) { |
|
15 | + Schema::create('template', 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('kb_article', function (Blueprint $table) { |
|
15 | + Schema::create('kb_article', function(Blueprint $table) { |
|
16 | 16 | $table->increments('id'); |
17 | 17 | $table->text('name'); |
18 | 18 | $table->string('slug'); |
@@ -12,7 +12,7 @@ |
||
12 | 12 | */ |
13 | 13 | public function up() |
14 | 14 | { |
15 | - Schema::create('settings_alert_notice', function (Blueprint $table) { |
|
15 | + Schema::create('settings_alert_notice', function(Blueprint $table) { |
|
16 | 16 | $table->increments('id'); |
17 | 17 | $table->boolean('ticket_status'); |
18 | 18 | $table->boolean('ticket_admin_email'); |
@@ -12,7 +12,7 @@ |
||
12 | 12 | */ |
13 | 13 | public function up() |
14 | 14 | { |
15 | - Schema::create('canned_response', function (Blueprint $table) { |
|
15 | + Schema::create('canned_response', function(Blueprint $table) { |
|
16 | 16 | $table->increments('id'); |
17 | 17 | $table->integer('user_id')->unsigned()->index('user_id'); |
18 | 18 | $table->string('title'); |
@@ -12,7 +12,7 @@ discard block |
||
12 | 12 | */ |
13 | 13 | public function up() |
14 | 14 | { |
15 | - Schema::table('ticket_attachment', function (Blueprint $table) { |
|
15 | + Schema::table('ticket_attachment', function(Blueprint $table) { |
|
16 | 16 | $table->foreign('thread_id', 'ticket_attachment_ibfk_1')->references('id')->on('ticket_thread')->onUpdate('NO ACTION')->onDelete('RESTRICT'); |
17 | 17 | }); |
18 | 18 | } |
@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | */ |
25 | 25 | public function down() |
26 | 26 | { |
27 | - Schema::table('ticket_attachment', function (Blueprint $table) { |
|
27 | + Schema::table('ticket_attachment', function(Blueprint $table) { |
|
28 | 28 | $table->dropForeign('ticket_attachment_ibfk_1'); |
29 | 29 | }); |
30 | 30 | } |