1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-31 15:24:31 +03:00

ZIP Import: Added model+migration, and reader class

This commit is contained in:
Dan Brown
2024-11-02 17:17:34 +00:00
parent 259aa829d4
commit 74fce9640e
8 changed files with 234 additions and 35 deletions

View File

@ -0,0 +1,34 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('imports', function (Blueprint $table) {
$table->increments('id');
$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->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('imports');
}
};