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:
parent
e02fcbe983
commit
5034f21394
@ -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');
|
||||
});
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user