mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-04-21 11:40:38 +00:00
Added migration file.
This commit is contained in:
parent
e02fcbe983
commit
5034f21394
1 changed files with 4 additions and 4 deletions
|
@ -14,11 +14,11 @@ class AddCoverImageDisplay extends Migration
|
||||||
public function up()
|
public function up()
|
||||||
{
|
{
|
||||||
Schema::table('users', function (Blueprint $table) {
|
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()
|
public function down()
|
||||||
{
|
{
|
||||||
Schema::table('users', function (Blueprint $table) {
|
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');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Add table
Reference in a new issue