Skip to content

Commit 27765e8

Browse files
committed
fix(backend): update dump for tests
1 parent dbaa2e1 commit 27765e8

File tree

4 files changed

+18
-2
lines changed

4 files changed

+18
-2
lines changed
140 Bytes
Binary file not shown.

_scripts/db/dumps/domifa_test.postgres.restore-data-only.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ daee63de-0948-45bc-91c5-6ca1bcc1de5a 2025-03-04 14:17:42.44746+01 2025-03-04 14:
177177
-- Data for Name: structure_doc; Type: TABLE DATA; Schema: public; Owner: -
178178
--
179179

180-
COPY public.structure_doc (uuid, "createdAt", "updatedAt", version, id, label, "createdBy", custom, filetype, "structureId", path, "customDocType", "displayInPortailUsager") FROM stdin;
180+
COPY public.structure_doc (uuid, "createdAt", "updatedAt", version, id, label, "createdBy", custom, filetype, "structureId", path, "customDocType", "displayInPortailUsager", "encryptionContext", "encryptionVersion") FROM stdin;
181181
\.
182182

183183

_scripts/db/dumps/domifa_test.postgres.truncate-restore-data-only.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ daee63de-0948-45bc-91c5-6ca1bcc1de5a 2025-03-04 14:17:42.44746+01 2025-03-04 14:
211211
-- Data for Name: structure_doc; Type: TABLE DATA; Schema: public; Owner: -
212212
--
213213

214-
COPY public.structure_doc (uuid, "createdAt", "updatedAt", version, id, label, "createdBy", custom, filetype, "structureId", path, "customDocType", "displayInPortailUsager") FROM stdin;
214+
COPY public.structure_doc (uuid, "createdAt", "updatedAt", version, id, label, "createdBy", custom, filetype, "structureId", path, "customDocType", "displayInPortailUsager", "encryptionContext", "encryptionVersion") FROM stdin;
215215
\.
216216

217217

packages/backend/src/_migrations/_init-db/1603812391580-pr-env-create-database.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,20 @@ async function createTables(queryRunner: QueryRunner) {
113113
);
114114
115115
116+
-- public.migrations definition
117+
118+
-- Drop table
119+
120+
-- DROP TABLE public.migrations;
121+
122+
CREATE TABLE public.migrations (
123+
id serial4 NOT NULL,
124+
"timestamp" int8 NOT NULL,
125+
"name" varchar NOT NULL,
126+
CONSTRAINT "PK_8c82d7f526340ab734260ea46be" PRIMARY KEY (id)
127+
);
128+
129+
116130
-- public.monitor_batch_process definition
117131
118132
-- Drop table
@@ -378,6 +392,8 @@ async function createTables(queryRunner: QueryRunner) {
378392
"path" text NOT NULL,
379393
"customDocType" text NULL,
380394
"displayInPortailUsager" bool DEFAULT false NOT NULL,
395+
"encryptionContext" text NULL,
396+
"encryptionVersion" int4 NULL,
381397
CONSTRAINT "PK_6d6be27ca865c8ba30b9c862b70" PRIMARY KEY (uuid),
382398
CONSTRAINT "UQ_b1dfa7ef1934657b38072e749e3" UNIQUE (id),
383399
CONSTRAINT "FK_d79d466c870df0b58864836899d" FOREIGN KEY ("structureId") REFERENCES public."structure"(id) ON DELETE CASCADE

0 commit comments

Comments
 (0)