rename tables raumealle, allgemeinflaechen orientierung_zu_abschlaege

This commit is contained in:
salam committed 2025-10-25 05:47:33 +02:00
1 parent f2b6487ec0
commit 92bdc77eee
31 files changed
+194 -197

No files matched your search

@@ -11,7 +11,7 @@ return new class extends Migration
*/
public function up(): void
{
Schema::create('allgemeinflaechens', function (Blueprint $table) {
Schema::create('projekt_allgemeinflaechens', function (Blueprint $table) {
$table->id();
$table->foreignId('projekte_id')->constrained()->cascadeOnDelete();
$table->string('geschoss')->nullable();
@@ -26,6 +26,6 @@ return new class extends Migration
*/
public function down(): void
{
Schema::dropIfExists('allgemeinflaechens');
Schema::dropIfExists('projekt_allgemeinflaechens');
}
};
@@ -11,10 +11,10 @@ return new class extends Migration
*/
public function up(): void
{
Schema::create('raeumealles', function (Blueprint $table) {
Schema::create('projekt_raeumealles', function (Blueprint $table) {
$table->id();
$table->foreignId('projekte_id')->constrained()->cascadeOnDelete();
$table->integer('orientierung_zu_abschlaege_id')->default(0)->nullable();
$table->integer('projekt_orientierung_zu_abschlaege_id')->default(0)->nullable();
$table->string('top_nummer')->nullable();
$table->string('geschoss')->nullable();
$table->string('raumart')->nullable();
@@ -30,6 +30,6 @@ return new class extends Migration
*/
public function down(): void
{
Schema::dropIfExists('raeumealles');
Schema::dropIfExists('projekt_raeumealles');
}
};
@@ -11,7 +11,7 @@ return new class extends Migration
*/
public function up(): void
{
Schema::create('orientierung_zu_abschlaeges', function (Blueprint $table) {
Schema::create('projekt_orientierung_zu_abschlaeges', function (Blueprint $table) {
$table->id();
$table->foreignId('projekte_id')->constrained()->cascadeOnDelete();
$table->integer('orientierung_id')->nullable()->default(0);
@@ -41,6 +41,6 @@ return new class extends Migration
*/
public function down(): void
{
Schema::dropIfExists('orientierung_zu_abschlaeges');
Schema::dropIfExists('projekt_orientierung_zu_abschlaeges');
}
};
+1 -2
View File
@@ -2,10 +2,9 @@
namespace Database\Seeders;
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
class AllgemeinflaechenSeeder extends Seeder
class ProjektAllgemeinflaechenSeeder extends Seeder
{
/**
* Run the database seeds.
+1 -2
View File
@@ -2,10 +2,9 @@
namespace Database\Seeders;
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
class RaeumealleSeeder extends Seeder
class ProjektRaeumealleSeeder extends Seeder
{
/**
* Run the database seeds.
+3 -3
View File
@@ -19,7 +19,7 @@ class TestProjektSeeder extends Seeder
DB::unprepared($sql);
$sql = "INSERT INTO `allgemeinflaechens` (`id`, `projekte_id`, `geschoss`, `raumart`, `flaeche`, `created_at`, `updated_at`)
$sql = "INSERT INTO `projekt_allgemeinflaechens` (`id`, `projekte_id`, `geschoss`, `raumart`, `flaeche`, `created_at`, `updated_at`)
VALUES
('1', '1', 'EG', 'Freifläche', '116.21', '2025-10-21 04:05:43', '2025-10-21 04:05:43'),
('2', '1', 'EG', 'Freifläche/ Gründach', '207.52', '2025-10-21 04:05:43', '2025-10-21 04:05:43'),
@@ -50,7 +50,7 @@ class TestProjektSeeder extends Seeder
DB::unprepared($sql);
$sql = "INSERT INTO `raeumealles` (`id`, `projekte_id`, `orientierung_zu_abschlaege_id`, `top_nummer`, `geschoss`, `raumart`, `faktor`, `flaeche`, `nutzwert`, `created_at`, `updated_at`)
$sql = "INSERT INTO `projekt_raeumealles` (`id`, `projekte_id`, `projekt_orientierung_zu_abschlaeges`, `top_nummer`, `geschoss`, `raumart`, `faktor`, `flaeche`, `nutzwert`, `created_at`, `updated_at`)
VALUES
('1', '1', '207', 'APG 01', 'UG', 'Stellplatz', '0.5', '12.94', NULL, '2025-10-21 04:05:43', '2025-10-23 09:36:13'),
('2', '1', '208', 'APG 02', 'UG', 'Stellplatz', '0.5', '13.38', NULL, '2025-10-21 04:05:43', '2025-10-23 09:36:13'),
@@ -237,7 +237,7 @@ class TestProjektSeeder extends Seeder
DB::unprepared($sql);
$sql = "INSERT INTO `orientierung_zu_abschlaeges` (`id`, `projekte_id`, `orientierung_id`, `nicht_in_orientierung`, `top_nummer`, `type`, `nutzwert`, `a`, `b`, `c`, `d`, `e`, `f`, `g`, `h`, `i`, `j`, `created_at`, `updated_at`)
$sql = "INSERT INTO `projekt_orientierung_zu_abschlaeges` (`id`, `projekte_id`, `orientierung_id`, `nicht_in_orientierung`, `top_nummer`, `type`, `nutzwert`, `a`, `b`, `c`, `d`, `e`, `f`, `g`, `h`, `i`, `j`, `created_at`, `updated_at`)
VALUES
('143', '1', '0', '0', 'APG 02', NULL, '0', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-10-22 17:28:29', '2025-10-22 17:28:58'),
('144', '1', '0', '0', 'APG 03', NULL, '0', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-10-22 17:28:29', '2025-10-22 17:28:58'),