Eingabe Bauteile

This commit is contained in:
Jens Cornelsen
2025-05-05 12:39:46 +02:00
parent 115d14875f
commit 36449d6a56
17 changed files with 405 additions and 81 deletions

View File

@@ -0,0 +1,23 @@
-- CreateEnum
CREATE TYPE "orientierung" AS ENUM ('Bitte_auswaehlen', 'Sued', 'Suedost', 'Suedwest', 'Ost', 'West', 'Nordwest', 'Nordost', 'Nord', 'horizontal');
-- CreateEnum
CREATE TYPE "art" AS ENUM ('Bitte_auswaehlen', 'Fenster', 'Dachfenster', 'Haustuer', 'Oberlicht', 'Aussenwand', 'Dach', 'Flachdach', 'Geschossdecke', 'Kellerdecke', 'Boden');
-- CreateEnum
CREATE TYPE "neigung" AS ENUM ('Neigung0', 'Neigung30', 'Neigung45', 'Neigung60', 'Neigung90');
-- AlterEnum
-- This migration adds more than one value to an enum.
-- With PostgreSQL versions 11 and earlier, this is not possible
-- in a single migration. This can be worked around by creating
-- multiple migrations, each migration adding only one value to
-- the enum.
ALTER TYPE "Waermeerzeuger" ADD VALUE 'Therme';
ALTER TYPE "Waermeerzeuger" ADD VALUE 'Brennwertherme';
-- AlterTable
ALTER TABLE "BedarfsausweisWohnen" ADD COLUMN "art" "art" NOT NULL DEFAULT 'Bitte_auswaehlen',
ADD COLUMN "orientierung" "orientierung" NOT NULL DEFAULT 'Bitte_auswaehlen';

View File

@@ -0,0 +1,11 @@
/*
Warnings:
- You are about to drop the column `art` on the `BedarfsausweisWohnen` table. All the data in the column will be lost.
- You are about to drop the column `orientierung` on the `BedarfsausweisWohnen` table. All the data in the column will be lost.
*/
-- AlterTable
ALTER TABLE "BedarfsausweisWohnen" DROP COLUMN "art",
DROP COLUMN "orientierung",
ADD COLUMN "planungswerte_bauteil" TEXT[] DEFAULT ARRAY[]::TEXT[];

View File

@@ -0,0 +1,2 @@
-- AlterTable
ALTER TABLE "BedarfsausweisWohnen" ALTER COLUMN "planungswerte_bauteil" DROP DEFAULT;

View File

@@ -0,0 +1,9 @@
/*
Warnings:
- The `planungswerte_bauteil` column on the `BedarfsausweisWohnen` table would be dropped and recreated. This will lead to data loss if there is data in the column.
*/
-- AlterTable
ALTER TABLE "BedarfsausweisWohnen" DROP COLUMN "planungswerte_bauteil",
ADD COLUMN "planungswerte_bauteil" JSON[];

View File

@@ -0,0 +1,8 @@
/*
Warnings:
- You are about to drop the column `planungswerte_bauteil` on the `BedarfsausweisWohnen` table. All the data in the column will be lost.
*/
-- AlterTable
ALTER TABLE "BedarfsausweisWohnen" DROP COLUMN "planungswerte_bauteil";