]> BookStack Code Mirror - bookstack/commitdiff
Added migration file. 494/head
authorBharadwaja G <redacted>
Tue, 5 Sep 2017 14:23:29 +0000 (19:53 +0530)
committerBharadwaja G <redacted>
Tue, 5 Sep 2017 14:23:29 +0000 (19:53 +0530)
database/migrations/2017_08_29_102650_add_cover_image_display.php [moved from database/migrations/2017_07_05_102650_add_cover_image_display.php with 77% similarity]

similarity index 77%
rename from database/migrations/2017_07_05_102650_add_cover_image_display.php
rename to database/migrations/2017_08_29_102650_add_cover_image_display.php
index 396112744a8f101f2e92e8ff1732a5343da04603..a8bba51c8c7ee35cc87116f55c7695410d1b4545 100644 (file)
@@ -14,11 +14,11 @@ class AddCoverImageDisplay extends Migration
     public function up()
     {
         Schema::table('users', function (Blueprint $table) {
     public function up()
     {
         Schema::table('users', function (Blueprint $table) {
-            $table->string('books_display',10)->default('grid');
+            $table->string('books_view_type',10)->default('grid');
         });
 
         Schema::table('books', function (Blueprint $table) {
         });
 
         Schema::table('books', function (Blueprint $table) {
-            $table->integer('image');
+            $table->integer('image_id');
         });
     }
 
         });
     }
 
@@ -30,11 +30,11 @@ class AddCoverImageDisplay extends Migration
     public function down()
     {
         Schema::table('users', function (Blueprint $table) {
     public function down()
     {
         Schema::table('users', function (Blueprint $table) {
-            $table->dropColumn('books_display');
+            $table->dropColumn('books_view_type');
         });
 
         Schema::table('books', function (Blueprint $table) {
         });
 
         Schema::table('books', function (Blueprint $table) {
-            $table->dropColumn('image');
+            $table->dropColumn('image_id');
         });
     }
 }
         });
     }
 }