wip
This commit is contained in:
1 parent
064fceaca0
commit
fdd91f5032
10 files changed
+140
-26
No files matched your search
@@ -14,8 +14,6 @@ return new class extends Migration
|
||||
Schema::create('raeumealles', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->foreignId('projekte_id')->constrained()->cascadeOnDelete();
|
||||
$table->integer('methode_id')->default(0);
|
||||
$table->integer('orientierung_id')->default(0);
|
||||
$table->string('top_nummer')->nullable();
|
||||
$table->string('geschoss')->nullable();
|
||||
$table->string('raumart')->nullable();
|
||||
|
||||
@@ -0,0 +1,45 @@
|
||||
<?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('orientierung_zu_abschlaeges', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->foreignId('projekte_id')->constrained()->cascadeOnDelete();
|
||||
$table->integer('orientierung_id')->nullable()->default(0);
|
||||
$table->boolean('nicht_in_orientierung')->default(0);
|
||||
$table->string('top_nummer')->nullable();
|
||||
$table->string('raumart')->nullable();
|
||||
|
||||
// 10 Zusatzfelder
|
||||
$table->decimal('a', 5, 2)->default(0);
|
||||
$table->decimal('b', 5, 2)->default(0);
|
||||
$table->decimal('c', 5, 2)->default(0);
|
||||
$table->decimal('d', 5, 2)->default(0);
|
||||
$table->decimal('e', 5, 2)->default(0);
|
||||
$table->decimal('f', 5, 2)->default(0);
|
||||
$table->decimal('g', 5, 2)->default(0);
|
||||
$table->decimal('h', 5, 2)->default(0);
|
||||
$table->decimal('i', 5, 2)->default(0);
|
||||
$table->decimal('j', 5, 2)->default(0);
|
||||
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('orientierung_zu_abschlaeges');
|
||||
}
|
||||
};
|
||||
Reference in new issue
Block a user