1
0
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:
Dan Brown
2024-11-05 13:17:31 +00:00
parent 14578c2257
commit 92cfde495e
20 changed files with 303 additions and 105 deletions

View File

@@ -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(),
];
}

View File

@@ -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();
});
}