mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-04-30 14:40:03 +00:00
Converted books view setting to user setting
Also cleaned up/moved new CSS and removed redundant new book methods.
This commit is contained in:
parent
bc1302a8d8
commit
261e57fc4e
11 changed files with 75 additions and 134 deletions
database/migrations
|
@ -13,12 +13,8 @@ class AddCoverImageDisplay extends Migration
|
|||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::table('users', function (Blueprint $table) {
|
||||
$table->string('books_view_type',10)->default('grid');
|
||||
});
|
||||
|
||||
Schema::table('books', function (Blueprint $table) {
|
||||
$table->integer('image_id');
|
||||
$table->integer('image_id')->nullable()->default(null);
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -29,10 +25,6 @@ class AddCoverImageDisplay extends Migration
|
|||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::table('users', function (Blueprint $table) {
|
||||
$table->dropColumn('books_view_type');
|
||||
});
|
||||
|
||||
Schema::table('books', function (Blueprint $table) {
|
||||
$table->dropColumn('image_id');
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue