Completed
Push — master ( e78e97...858d86 )
by David
06:08
created
src/database/migrations/2016_08_24_133554_posts_add_sticky_and_locked.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
8 8
     public function up()
9 9
     {
10 10
         if (!Schema::hasColumn('forum_posts', 'sticky') && !Schema::hasColumn('forum_posts', 'locked')) {
11
-            Schema::table('forum_posts', function ($table) {
11
+            Schema::table('forum_posts', function($table) {
12 12
                 $table->boolean('sticky')->default(0);
13 13
                 $table->boolean('locked')->default(0);
14 14
             });
@@ -17,8 +17,8 @@  discard block
 block discarded – undo
17 17
 
18 18
     public function down()
19 19
     {
20
-        Schema::table('forum_posts', function ($table) {
21
-            $table->dropColumn(['sticky', 'locked']);
20
+        Schema::table('forum_posts', function($table) {
21
+            $table->dropColumn([ 'sticky', 'locked' ]);
22 22
         });
23 23
     }
24 24
 }
Please login to merge, or discard this patch.
src/database/migrations/2016_08_24_132428_create_forums_table.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,8 +14,8 @@
 block discarded – undo
14 14
                 $table->string('description')->nullable();
15 15
                 $table->integer('category_id')->unsigned();
16 16
                 $table->foreign('category_id')
17
-                      ->references('id')->on('forum_categories')
18
-                      ->onDelete('cascade');
17
+                        ->references('id')->on('forum_categories')
18
+                        ->onDelete('cascade');
19 19
                 $table->integer('public')->default(1);
20 20
                 $table->timestamps();
21 21
             });
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
     public function up()
9 9
     {
10 10
         if (!Schema::hasTable('forums')) {
11
-            Schema::create('forums', function ($table) {
11
+            Schema::create('forums', function($table) {
12 12
                 $table->increments('id');
13 13
                 $table->string('name');
14 14
                 $table->string('description')->nullable();
Please login to merge, or discard this patch.