Felder angepasst und Tests

This commit is contained in:
Moritz Utcke
2025-03-30 20:18:30 -03:00
parent e2e576e4fe
commit c8b41458e1
34 changed files with 303 additions and 376 deletions

View File

@@ -0,0 +1,44 @@
/*
Warnings:
- You are about to drop the column `ausstellungsdatum` on the `Aufnahme` table. All the data in the column will be lost.
- You are about to drop the column `ausweisart` on the `Aufnahme` table. All the data in the column will be lost.
- You are about to drop the column `boxpruefung` on the `Aufnahme` table. All the data in the column will be lost.
- You are about to drop the column `brennstoff_1` on the `Aufnahme` table. All the data in the column will be lost.
- You are about to drop the column `brennstoff_2` on the `Aufnahme` table. All the data in the column will be lost.
- You are about to drop the column `energieeffizienzklasse` on the `Aufnahme` table. All the data in the column will be lost.
- You are about to drop the column `uid` on the `Bild` table. All the data in the column will be lost.
- You are about to drop the column `keller_beheizt` on the `VerbrauchsausweisWohnen` table. All the data in the column will be lost.
*/
-- DropIndex
DROP INDEX "Bild_uid_key";
-- AlterTable
ALTER TABLE "Aufnahme" DROP COLUMN "ausstellungsdatum",
DROP COLUMN "ausweisart",
DROP COLUMN "boxpruefung",
DROP COLUMN "brennstoff_1",
DROP COLUMN "brennstoff_2",
DROP COLUMN "energieeffizienzklasse";
-- AlterTable
ALTER TABLE "BedarfsausweisWohnen" ADD COLUMN "ausstellungsdatum" TIMESTAMP(3),
ADD COLUMN "boxpruefung" BOOLEAN DEFAULT false,
ADD COLUMN "energieeffizienzklasse" VARCHAR(5);
-- AlterTable
ALTER TABLE "Bild" DROP COLUMN "uid";
-- AlterTable
ALTER TABLE "VerbrauchsausweisGewerbe" ADD COLUMN "ausstellungsdatum" TIMESTAMP(3),
ADD COLUMN "boxpruefung" BOOLEAN DEFAULT false,
ADD COLUMN "energieeffizienzklasse" VARCHAR(5);
-- AlterTable
ALTER TABLE "VerbrauchsausweisWohnen" DROP COLUMN "keller_beheizt",
ADD COLUMN "ausstellungsdatum" TIMESTAMP(3),
ADD COLUMN "boxpruefung" BOOLEAN DEFAULT false,
ADD COLUMN "brennstoff_1" VARCHAR(50),
ADD COLUMN "brennstoff_2" VARCHAR(50),
ADD COLUMN "energieeffizienzklasse" VARCHAR(5);