Eingabe Bauteile
This commit is contained in:
23
prisma/migrations/20250503133406_/migration.sql
Normal file
23
prisma/migrations/20250503133406_/migration.sql
Normal 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';
|
||||
11
prisma/migrations/20250503145257_/migration.sql
Normal file
11
prisma/migrations/20250503145257_/migration.sql
Normal 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[];
|
||||
2
prisma/migrations/20250503152800_/migration.sql
Normal file
2
prisma/migrations/20250503152800_/migration.sql
Normal file
@@ -0,0 +1,2 @@
|
||||
-- AlterTable
|
||||
ALTER TABLE "BedarfsausweisWohnen" ALTER COLUMN "planungswerte_bauteil" DROP DEFAULT;
|
||||
9
prisma/migrations/20250503153001_/migration.sql
Normal file
9
prisma/migrations/20250503153001_/migration.sql
Normal 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[];
|
||||
8
prisma/migrations/20250503154245_/migration.sql
Normal file
8
prisma/migrations/20250503154245_/migration.sql
Normal 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";
|
||||
Reference in New Issue
Block a user