Unterlagen und weitere Fehler
This commit is contained in:
20
prisma/migrations/20250405131537_mime/migration.sql
Normal file
20
prisma/migrations/20250405131537_mime/migration.sql
Normal file
@@ -0,0 +1,20 @@
|
||||
/*
|
||||
Warnings:
|
||||
|
||||
- You are about to drop the column `alte_ausweis_id` on the `BedarfsausweisWohnen` table. All the data in the column will be lost.
|
||||
- You are about to drop the column `alte_ausweis_id` on the `VerbrauchsausweisGewerbe` table. All the data in the column will be lost.
|
||||
- You are about to drop the column `alte_ausweis_id` on the `VerbrauchsausweisWohnen` table. All the data in the column will be lost.
|
||||
- Made the column `mime` on table `Unterlage` required. This step will fail if there are existing NULL values in that column.
|
||||
|
||||
*/
|
||||
-- AlterTable
|
||||
ALTER TABLE "BedarfsausweisWohnen" DROP COLUMN "alte_ausweis_id";
|
||||
|
||||
-- AlterTable
|
||||
ALTER TABLE "Unterlage" ALTER COLUMN "mime" SET NOT NULL;
|
||||
|
||||
-- AlterTable
|
||||
ALTER TABLE "VerbrauchsausweisGewerbe" DROP COLUMN "alte_ausweis_id";
|
||||
|
||||
-- AlterTable
|
||||
ALTER TABLE "VerbrauchsausweisWohnen" DROP COLUMN "alte_ausweis_id";
|
||||
@@ -1,7 +1,6 @@
|
||||
|
||||
model BedarfsausweisWohnen {
|
||||
id String @id @unique @db.VarChar(8)
|
||||
alte_ausweis_id Int?
|
||||
benutzer_id String?
|
||||
ausstellgrund Ausstellgrund?
|
||||
registriernummer String? @db.VarChar
|
||||
|
||||
@@ -8,7 +8,7 @@ model Unterlage {
|
||||
id String @id @unique @db.VarChar(8)
|
||||
name String?
|
||||
kategorie String?
|
||||
mime String?
|
||||
mime String
|
||||
|
||||
aufnahme_id String?
|
||||
aufnahme Aufnahme? @relation(fields: [aufnahme_id], references: [id], onDelete: NoAction, onUpdate: NoAction)
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
|
||||
model VerbrauchsausweisGewerbe {
|
||||
id String @id @unique @db.VarChar(8)
|
||||
alte_ausweis_id Int?
|
||||
ausstellgrund Ausstellgrund?
|
||||
registriernummer String? @db.VarChar
|
||||
zusaetzliche_heizquelle Boolean?
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
model VerbrauchsausweisWohnen {
|
||||
/// @zod.describe("ID des Ausweises")
|
||||
id String @id @unique @db.VarChar(8)
|
||||
alte_ausweis_id Int?
|
||||
/// @zod.describe("Ausstellgrund wie z.B. Vermietung oder Verkauf")
|
||||
ausstellgrund Ausstellgrund?
|
||||
/// @zod.describe("Die Registriernummer des Ausweises")
|
||||
|
||||
Reference in New Issue
Block a user