allgemeinflaechen
This commit is contained in:
1 parent
4204c74406
commit
0b18eea9d7
15 files changed
+140
-145
No files matched your search
File renamed without changes.
File renamed without changes.
+5
-6
@@ -11,13 +11,12 @@ return new class extends Migration
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('projekte_imports', function (Blueprint $table) {
|
||||
Schema::create('allgemeinflaechens', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->foreignId('projekte_id')->constrained()->cascadeOnDelete()->default(0);
|
||||
$table->string('file')->nullable();
|
||||
$table->text('beschreibung')->nullable();
|
||||
$table->string('filetype')->nullable();
|
||||
$table->string('original_name')->nullable();
|
||||
$table->string('geschoss')->nullable();
|
||||
$table->string('raumart')->nullable();
|
||||
$table->string('flaeche')->nullable();
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
@@ -27,6 +26,6 @@ return new class extends Migration
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('projekte_imports');
|
||||
Schema::dropIfExists('allgemeinflaechens');
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,35 @@
|
||||
<?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('raeumealles', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->foreignId('projekte_id')->constrained()->cascadeOnDelete()->default(0);
|
||||
$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();
|
||||
$table->double('faktor')->nullable();
|
||||
$table->double('flaeche')->nullable();
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('raeumealles');
|
||||
}
|
||||
};
|
||||
Reference in new issue
Block a user