mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-08-09 10:22:51 +03:00
ZIP Imports: Added full contents view to import display
Reduced import data will now be stored on the import itself, instead of storing a set of totals.
This commit is contained in:
@@ -23,9 +23,8 @@ class ImportFactory extends Factory
|
||||
return [
|
||||
'path' => 'uploads/imports/' . Str::random(10) . '.zip',
|
||||
'name' => $this->faker->words(3, true),
|
||||
'book_count' => 1,
|
||||
'chapter_count' => 5,
|
||||
'page_count' => 15,
|
||||
'type' => 'book',
|
||||
'metadata' => '{"name": "My book"}',
|
||||
'created_at' => User::factory(),
|
||||
];
|
||||
}
|
||||
|
@@ -16,10 +16,9 @@ return new class extends Migration
|
||||
$table->string('name');
|
||||
$table->string('path');
|
||||
$table->integer('size');
|
||||
$table->integer('book_count');
|
||||
$table->integer('chapter_count');
|
||||
$table->integer('page_count');
|
||||
$table->integer('created_by');
|
||||
$table->string('type');
|
||||
$table->longText('metadata');
|
||||
$table->integer('created_by')->index();
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user