InhaltsverzeichnisTable

This commit is contained in:
salam committed 2025-10-02 19:48:45 +02:00
1 parent b0443b583d
commit edc3543ff1
25 files changed
+616 -3

No files matched your search

@@ -0,0 +1,30 @@
<?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('textblocks', function (Blueprint $table) {
$table->id();
$table->string('kennung');
$table->string('name');
$table->text('textblock');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('textblocks');
}
};
@@ -0,0 +1,31 @@
<?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('inhaltsverzeichnis', function (Blueprint $table) {
$table->id();
$table->integer('sort')->default(0);
$table->double('ordnungszahl')->default(0.00);
$table->string('text');
$table->integer('seite')->default(0);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('inhaltsverzeichnis');
}
};