@@ -53,12 +53,12 @@ discard block |
||
| 53 | 53 | */ |
| 54 | 54 | private function dropSeries() |
| 55 | 55 | { |
| 56 | - Schema::table('rainlab_blog_posts', static function ($table) { |
|
| 57 | - $table->dropForeign([Series::TABLE_NAME . '_id']); |
|
| 56 | + Schema::table('rainlab_blog_posts', static function($table) { |
|
| 57 | + $table->dropForeign([ Series::TABLE_NAME . '_id' ]); |
|
| 58 | 58 | }); |
| 59 | 59 | |
| 60 | 60 | if (Schema::hasColumn('rainlab_blog_posts', Series::TABLE_NAME . '_id')) { |
| 61 | - Schema::table('rainlab_blog_posts', static function ($table) { |
|
| 61 | + Schema::table('rainlab_blog_posts', static function($table) { |
|
| 62 | 62 | $table->dropColumn(Series::TABLE_NAME . '_id'); |
| 63 | 63 | }); |
| 64 | 64 | } |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | if (!Schema::hasTable(Tag::TABLE_NAME)) { |
| 75 | 75 | Schema::create( |
| 76 | 76 | Tag::TABLE_NAME, |
| 77 | - static function ($table) { |
|
| 77 | + static function($table) { |
|
| 78 | 78 | $table->engine = 'InnoDB'; |
| 79 | 79 | |
| 80 | 80 | $table->increments('id'); |
@@ -88,12 +88,12 @@ discard block |
||
| 88 | 88 | if (!Schema::hasTable('ginopane_blogtaxonomy_post_tag')) { |
| 89 | 89 | Schema::create( |
| 90 | 90 | 'ginopane_blogtaxonomy_post_tag', |
| 91 | - static function ($table) { |
|
| 91 | + static function($table) { |
|
| 92 | 92 | $table->engine = 'InnoDB'; |
| 93 | 93 | |
| 94 | 94 | $table->integer('tag_id')->unsigned()->nullable()->default(null); |
| 95 | 95 | $table->integer('post_id')->unsigned()->nullable()->default(null); |
| 96 | - $table->index(['tag_id', 'post_id']); |
|
| 96 | + $table->index([ 'tag_id', 'post_id' ]); |
|
| 97 | 97 | $table->foreign('tag_id')->references('id')->on(Tag::TABLE_NAME)->onDelete('cascade'); |
| 98 | 98 | $table->foreign('post_id')->references('id')->on('rainlab_blog_posts')->onDelete('cascade'); |
| 99 | 99 | } |
@@ -109,7 +109,7 @@ discard block |
||
| 109 | 109 | if (!Schema::hasTable(Series::TABLE_NAME)) { |
| 110 | 110 | Schema::create( |
| 111 | 111 | Series::TABLE_NAME, |
| 112 | - static function ($table) { |
|
| 112 | + static function($table) { |
|
| 113 | 113 | $table->engine = 'InnoDB'; |
| 114 | 114 | |
| 115 | 115 | $table->increments('id'); |
@@ -120,7 +120,7 @@ discard block |
||
| 120 | 120 | } |
| 121 | 121 | ); |
| 122 | 122 | |
| 123 | - Schema::table('rainlab_blog_posts', function ($table) { |
|
| 123 | + Schema::table('rainlab_blog_posts', function($table) { |
|
| 124 | 124 | $table->integer(Series::TABLE_NAME . '_id')->unsigned()->nullable()->default(null); |
| 125 | 125 | $table->foreign(Series::TABLE_NAME . '_id')->references('id')->on(Series::TABLE_NAME)->onDelete('cascade'); |
| 126 | 126 | }); |