diff --git a/lambda/src/main/resources/db/migration/V192__add_ja_1419_1420_series.sql b/lambda/src/main/resources/db/migration/V192__add_ja_1419_1420_series.sql new file mode 100644 index 0000000..96e748a --- /dev/null +++ b/lambda/src/main/resources/db/migration/V192__add_ja_1419_1420_series.sql @@ -0,0 +1,14 @@ +DO $$ + DECLARE + -- Retrieve NICE body uuid + NiceBodyUuid "Body"."BodyId"%TYPE := (SELECT "BodyId" FROM "Body" WHERE "TdrCode" = 'TDR-NICE'); + BEGIN + -- Use the returned NiceBodyUuid value for the series insert + INSERT INTO "Series" ("SeriesId", "BodyId", "Code", "Name", "Description") VALUES + (uuid_generate_v4(), NiceBodyUuid, 'JA 1419', 'JA 1419', 'JA 1419'), + (uuid_generate_v4(), NiceBodyUuid, 'JA 1420', 'JA 1420', 'JA 1420'); + + END $$; + +--commit changes +COMMIT;