Skip to content

Commit 23dcecf

Browse files
Merge pull request #94 from PanDAWMS/eddiedev
Schema 0.0.24
2 parents efe9d4b + c03b27a commit 23dcecf

File tree

3 files changed

+23
-2
lines changed

3 files changed

+23
-2
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
-- patch to be used to upgrade from version 0.0.23
2+
ALTER TABLE doma_panda.data_carousel_requests
3+
ADD COLUMN "source_tape" VARCHAR(64),
4+
ADD COLUMN "parameters" JSONB NOT NULL;
5+
6+
COMMENT ON COLUMN doma_panda.data_carousel_requests.source_tape IS E'Physical tape behind source RSE';
7+
COMMENT ON COLUMN doma_panda.data_carousel_requests.parameters IS E'Extra parameters of staging in JSON';
8+
9+
UPDATE doma_panda.pandadb_version
10+
SET major=0, minor=0, patch=24
11+
WHERE component='JEDI';
12+
13+
UPDATE doma_panda.pandadb_version
14+
SET major=0, minor=0, patch=24
15+
WHERE component='SERVER';
16+
17+
COMMIT;

schema/postgres/sqls/pg_PANDA_TABLE.sql

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2770,7 +2770,9 @@ CREATE TABLE data_carousel_requests (
27702770
"start_time" timestamp,
27712771
"end_time" timestamp,
27722772
"modification_time" timestamp,
2773-
"check_time" timestamp
2773+
"check_time" timestamp,
2774+
"source_tape" VARCHAR(64),
2775+
"parameters" JSONB NOT NULL
27742776
);
27752777
COMMENT ON TABLE data_carousel_requests IS E'Table of Data Carousel requests';
27762778
COMMENT ON COLUMN data_carousel_requests.request_id IS E'Sequential ID of the request, generated from PostgreSQL sequence object jedi_data_carousel_request_id_seq when new request is inserted';
@@ -2788,6 +2790,8 @@ COMMENT ON COLUMN data_carousel_requests.start_time IS E'Timestamp when the requ
27882790
COMMENT ON COLUMN data_carousel_requests.end_time IS E'Timestamp when the request ended';
27892791
COMMENT ON COLUMN data_carousel_requests.modification_time IS E'Timestamp of the last request update';
27902792
COMMENT ON COLUMN data_carousel_requests.check_time IS E'Last time when the request was checked';
2793+
COMMENT ON COLUMN doma_panda.data_carousel_requests.source_tape IS E'Physical tape behind source RSE';
2794+
COMMENT ON COLUMN doma_panda.data_carousel_requests.parameters IS E'Extra parameters of staging in JSON';
27912795
ALTER TABLE data_carousel_requests OWNER TO panda;
27922796
ALTER TABLE data_carousel_requests ADD PRIMARY KEY (request_id);
27932797

schema/postgres/version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.0.23
1+
0.0.24

0 commit comments

Comments
 (0)