1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2024-10-30 07:32:39 +01:00

Added migration file.

This commit is contained in:
Bharadwaja G 2017-09-05 19:53:29 +05:30
parent e02fcbe983
commit 5034f21394

View File

@ -14,11 +14,11 @@ class AddCoverImageDisplay extends Migration
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) {
$table->integer('image');
$table->integer('image_id');
});
}
@ -30,11 +30,11 @@ class AddCoverImageDisplay extends Migration
public function down()
{
Schema::table('users', function (Blueprint $table) {
$table->dropColumn('books_display');
$table->dropColumn('books_view_type');
});
Schema::table('books', function (Blueprint $table) {
$table->dropColumn('image');
$table->dropColumn('image_id');
});
}
}