Alte Ausweis ID

This commit is contained in:
Moritz Utcke
2025-03-19 18:54:22 -03:00
parent bba1fc0b47
commit 06eb1dff34
5 changed files with 51 additions and 4 deletions

View File

@@ -0,0 +1,47 @@
-- AlterTable
ALTER TABLE "Anteilshaber" ALTER COLUMN "uid" SET DEFAULT 'ant-' || gen_random_uuid();
-- AlterTable
ALTER TABLE "Aufnahme" ALTER COLUMN "uid" SET DEFAULT 'auf-' || gen_random_uuid();
-- AlterTable
ALTER TABLE "BedarfsausweisGewerbe" ALTER COLUMN "uid" SET DEFAULT 'bag-' || gen_random_uuid();
-- AlterTable
ALTER TABLE "BedarfsausweisWohnen" ALTER COLUMN "uid" SET DEFAULT 'baw-' || gen_random_uuid();
-- AlterTable
ALTER TABLE "Bild" ALTER COLUMN "uid" SET DEFAULT 'img-' || gen_random_uuid();
-- AlterTable
ALTER TABLE "Event" ALTER COLUMN "uid" SET DEFAULT 'evt-' || gen_random_uuid();
-- AlterTable
ALTER TABLE "GEGEinpreisung" ALTER COLUMN "uid" SET DEFAULT 'gge-' || gen_random_uuid();
-- AlterTable
ALTER TABLE "GEGNachweisGewerbe" ALTER COLUMN "uid" SET DEFAULT 'gng-' || gen_random_uuid();
-- AlterTable
ALTER TABLE "GEGNachweisWohnen" ALTER COLUMN "uid" SET DEFAULT 'gnw-' || gen_random_uuid();
-- AlterTable
ALTER TABLE "Objekt" ALTER COLUMN "uid" SET DEFAULT 'obj-' || gen_random_uuid();
-- AlterTable
ALTER TABLE "Rechnung" ALTER COLUMN "uid" SET DEFAULT 'inv-' || gen_random_uuid();
-- AlterTable
ALTER TABLE "Tickets" ALTER COLUMN "uid" SET DEFAULT 'tkt-' || gen_random_uuid();
-- AlterTable
ALTER TABLE "Unterlage" ALTER COLUMN "uid" SET DEFAULT 'pln-' || gen_random_uuid();
-- AlterTable
ALTER TABLE "VerbrauchsausweisGewerbe" ALTER COLUMN "uid" SET DEFAULT 'vag-' || gen_random_uuid();
-- AlterTable
ALTER TABLE "VerbrauchsausweisWohnen" ALTER COLUMN "uid" SET DEFAULT 'vaw-' || gen_random_uuid();
-- AlterTable
ALTER TABLE "benutzer" ALTER COLUMN "uid" SET DEFAULT 'usr-' || gen_random_uuid();

View File

@@ -5,7 +5,6 @@ export const createCaller = createCallerFactory({
"klimafaktoren": await import("../src/pages/api/klimafaktoren.ts"), "klimafaktoren": await import("../src/pages/api/klimafaktoren.ts"),
"postleitzahlen": await import("../src/pages/api/postleitzahlen.ts"), "postleitzahlen": await import("../src/pages/api/postleitzahlen.ts"),
"unterlage": await import("../src/pages/api/unterlage.ts"), "unterlage": await import("../src/pages/api/unterlage.ts"),
"ausweise": await import("../src/pages/api/ausweise/index.ts"),
"admin/ausstellen": await import("../src/pages/api/admin/ausstellen.ts"), "admin/ausstellen": await import("../src/pages/api/admin/ausstellen.ts"),
"admin/bestellbestaetigung": await import("../src/pages/api/admin/bestellbestaetigung.ts"), "admin/bestellbestaetigung": await import("../src/pages/api/admin/bestellbestaetigung.ts"),
"admin/erinnern": await import("../src/pages/api/admin/erinnern.ts"), "admin/erinnern": await import("../src/pages/api/admin/erinnern.ts"),
@@ -16,6 +15,7 @@ export const createCaller = createCallerFactory({
"auth/access-token": await import("../src/pages/api/auth/access-token.ts"), "auth/access-token": await import("../src/pages/api/auth/access-token.ts"),
"auth/passwort-vergessen": await import("../src/pages/api/auth/passwort-vergessen.ts"), "auth/passwort-vergessen": await import("../src/pages/api/auth/passwort-vergessen.ts"),
"auth/refresh-token": await import("../src/pages/api/auth/refresh-token.ts"), "auth/refresh-token": await import("../src/pages/api/auth/refresh-token.ts"),
"ausweise": await import("../src/pages/api/ausweise/index.ts"),
"aufnahme": await import("../src/pages/api/aufnahme/index.ts"), "aufnahme": await import("../src/pages/api/aufnahme/index.ts"),
"bedarfsausweis-gewerbe/[uid]": await import("../src/pages/api/bedarfsausweis-gewerbe/[uid].ts"), "bedarfsausweis-gewerbe/[uid]": await import("../src/pages/api/bedarfsausweis-gewerbe/[uid].ts"),
"bedarfsausweis-gewerbe": await import("../src/pages/api/bedarfsausweis-gewerbe/index.ts"), "bedarfsausweis-gewerbe": await import("../src/pages/api/bedarfsausweis-gewerbe/index.ts"),

View File

@@ -27,7 +27,7 @@
const ausweisart = getAusweisartFromUUID(ausweis.uid); const ausweisart = getAusweisartFromUUID(ausweis.uid);
const id = shortenUID(ausweis.uid) const id = ausweis.alte_ausweis_id || shortenUID(ausweis.uid);
async function ausweisStornieren() { async function ausweisStornieren() {
const result = await dialogs.confirm({ const result = await dialogs.confirm({

View File

@@ -1 +1 @@
{"12362023":true,"12362027":true,"12362028":true,"12362030":true,"12362031":true,"12362032":true,"12362035":true} {"12361815":true,"12361816":true,"12361817":true,"12361818":true,"12361820":true,"12361823":true,"12361824":true,"12361826":true,"12361827":true,"12361828":true,"12361829":true,"12361831":true,"12361832":true,"12361833":true,"12361834":true,"12361835":true,"12361836":true,"12361837":true,"12361838":true,"12361840":true,"12361841":true,"12361842":true,"12361843":true,"12361844":true,"12361845":true,"12361846":true,"12361847":true,"12361848":true,"12361849":true,"12361850":true,"12361851":true,"12361852":true,"12361853":true,"12361854":true,"12361855":true,"12361856":true,"12361857":true,"12361858":true,"12361859":true,"12361860":true,"12361861":true,"12361862":true,"12361863":true,"12361864":true,"12361865":true,"12361866":true,"12361867":true,"12361868":true,"12361869":true,"12361870":true,"12361871":true,"12361872":true,"12361873":true,"12361874":true,"12361875":true,"12361876":true,"12361877":true,"12361878":true,"12361879":true,"12361880":true,"12361881":true,"12361882":true,"12361883":true,"12361884":true,"12361885":true,"12361886":true,"12361887":true,"12361888":true,"12361889":true,"12361890":true,"12361891":true,"12361892":true,"12361893":true,"12361894":true,"12361896":true,"12361897":true,"12361898":true,"12361899":true,"12361901":true,"12361902":true,"12361903":true,"12361904":true,"12361905":true,"12361906":true,"12361907":true,"12361908":true,"12361909":true,"12361910":true,"12361911":true,"12361912":true,"12361913":true,"12361914":true,"12361915":true,"12361916":true,"12361917":true,"12361918":true,"12361919":true,"12361920":true,"12361921":true,"12361922":true,"12361923":true,"12361924":true,"12361925":true,"12361926":true,"12361927":true,"12361928":true,"12361929":true,"12361930":true,"12361931":true,"12361932":true,"12361933":true,"12361934":true,"12361935":true,"12361936":true,"12361937":true,"12361938":true,"12361939":true,"12361940":true,"12361941":true,"12361942":true,"12361943":true,"12361944":true,"12361945":true,"12361946":true,"12361947":true,"12361948":true,"12361949":true,"12361950":true,"12361951":true,"12361952":true,"12361953":true,"12361954":true,"12361955":true,"12361956":true,"12361957":true,"12361958":true,"12361959":true,"12361960":true,"12361961":true,"12361962":true,"12361963":true,"12361964":true,"12361965":true,"12361966":true,"12361967":true,"12361968":true,"12361969":true,"12361970":true,"12361971":true,"12361972":true,"12361973":true,"12361974":true,"12361975":true,"12361976":true,"12361977":true,"12361978":true,"12361979":true,"12361980":true,"12361981":true,"12361982":true,"12361983":true,"12361984":true,"12361985":true,"12361986":true,"12361987":true,"12361988":true,"12361989":true,"12361990":true,"12361991":true,"12361992":true,"12361993":true,"12361994":true,"12361995":true,"12361996":true,"12361997":true,"12361998":true,"12361999":true,"12362002":true,"12362003":true,"12362004":true,"12362005":true,"12362007":true,"12362010":true,"12362012":true,"12362013":true,"12362017":true,"12362019":true,"12362020":true,"12362022":true,"12362023":true,"12362024":true,"12362025":true,"12362026":true,"12362027":true,"12362028":true,"12362029":true,"12362030":true,"12362031":true,"12362032":true,"12362033":true,"12362034":true,"12362035":true}

File diff suppressed because one or more lines are too long