This commit is contained in:
salam committed 2025-11-05 18:07:50 +01:00
1 parent 3791379c41
commit ec5a56a9b1
27 files changed
+514 -143

No files matched your search

@@ -23,6 +23,7 @@ return new class extends Migration
$table->string('email')->nullable();
$table->string('phone')->nullable();
$table->string('logo_align')->default('right');
$table->integer('logo_height')->default(0)->nullable();
$table->text('referenz_formatting')->nullable();
$table->boolean('logo_anzeigen')->default(0);
$table->boolean('text_anzeigen')->default(0);
@@ -25,8 +25,6 @@ return new class extends Migration
$table->integer('neue_seite')->default(0);
$table->integer('seitenzahl_anzeige')->default(0);
$table->boolean('no_edit')->default(0)->nullable();
$table->string('hilfe_text')->nullable();
$table->string('hilfe_bild')->nullable();
$table->timestamps();
});
}
@@ -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('helps', function (Blueprint $table) {
$table->id();
$table->string('kennung')->unique();
$table->string('titel')->nullable();
$table->text('description')->nullable();
$table->string('image')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('helps');
}
};
+1
View File
@@ -25,6 +25,7 @@ class DatabaseSeeder extends Seeder
GutachterSeeder::class,
AuftraggeberSeeder::class,
RolesAndPermissionsSeeder::class,
HelperSeeder::class,
]);
// if (app()->isLocal()) {
+23
View File
@@ -0,0 +1,23 @@
<?php
namespace Database\Seeders;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;
class HelperSeeder extends Seeder
{
/**
* Run the database seeds.
*/
public function run(): void
{
$sql = "INSERT INTO `helps` (`id`, `kennung`, `titel`, `description`, `image`, `created_at`, `updated_at`)
VALUES
('1', 'gutachter_am_deckblatt', 'Gutachter am Deckblatt', 'Der Textblock wird am Deckblatt oben angezeigt. Die Ausgabe kann je nach Konfiguration Linkbündig, Mittig oder Rechtsbündig erfolgen.', 'gutachten_hilfe/gutachter.png', '2025-11-05 15:29:31', '2025-11-05 15:37:27'),
('2', 'logo_am_deckblatt', 'Logo am Deckblatt', 'Das Logo kann am Deckblatt oben angezeigt werden. Die Ausgabe kann je nach Konfiguration Linkbündig, Mittig oder Rechtsbündig erfolgen.', 'gutachten_hilfe/gutachter-logo.png', '2025-11-05 16:34:33', '2025-11-05 16:40:56');
";
DB::unprepared($sql);
}
}