Skip to content

Commit

Permalink
Merge pull request #89 from PanDAWMS/eddiedev
Browse files Browse the repository at this point in the history
Sync with oracle for schema 0.0.22
  • Loading branch information
EdwardKaravakis authored Nov 21, 2024
2 parents 62f1d12 + e323f9b commit cba8f51
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 1 deletion.
26 changes: 26 additions & 0 deletions schema/postgres/sqls/patches/0.0.22.patch.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
CREATE TABLE doma_panda.error_classification (
"id" bigint NOT NULL,
"error_source" VARCHAR(30) NOT NULL,
"error_code" bigint NOT NULL,
"error_diag" VARCHAR(256) NOT NULL,
"description" VARCHAR(250),
"error_class" VARCHAR(30) NOT NULL,
"active" CHAR(1) NOT NULL,
"reg_date" TIMESTAMP DEFAULT ((CURRENT_TIMESTAMP(0) AT TIME ZONE 'UTC'))
);
COMMENT ON TABLE doma_panda.error_classification IS E'Classification of job error codes+messages to system, user or others';
COMMENT ON COLUMN doma_panda.error_classification.id IS E'Sequential ID of the request. 1M offset to avoid overlapping IDs with retry module';
COMMENT ON COLUMN doma_panda.error_classification.error_source IS E'Source of the error: pilotErrorCode, exeErrorCode, ddmErrorCode...';
COMMENT ON COLUMN doma_panda.error_classification.error_code IS E'Error code number';
COMMENT ON COLUMN doma_panda.error_classification.error_diag IS E'Error message';
COMMENT ON COLUMN doma_panda.error_classification.description IS E'Any description or comment on the entry';
COMMENT ON COLUMN doma_panda.error_classification.error_class IS E'Error class: system, user,...';
COMMENT ON COLUMN doma_panda.error_classification.active IS E'Y or N. Depending on whether the entry is confirmed';
COMMENT ON COLUMN doma_panda.error_classification.reg_date IS E'Registration date, defaults to current timestamp';ALTER TABLE error_classification OWNER TO panda;
ALTER TABLE doma_panda.error_classification OWNER TO panda;
ALTER TABLE doma_panda.error_classification ADD PRIMARY KEY (id);

-- Update versions
UPDATE doma_panda.pandadb_version SET major=0, minor=0, patch=22 where component='JEDI';
UPDATE doma_panda.pandadb_version SET major=0, minor=0, patch=22 where component='SERVER';
COMMIT;
22 changes: 22 additions & 0 deletions schema/postgres/sqls/pg_PANDA_TABLE.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2796,3 +2796,25 @@ COMMENT ON COLUMN data_carousel_relations.request_id IS E'ID of the request';
COMMENT ON COLUMN data_carousel_relations.task_id IS E'ID of the task';
ALTER TABLE data_carousel_relations OWNER TO panda;
ALTER TABLE data_carousel_relations ADD PRIMARY KEY (request_id);

CREATE TABLE error_classification (
"id" bigint NOT NULL,
"error_source" VARCHAR(30) NOT NULL,
"error_code" bigint NOT NULL,
"error_diag" VARCHAR(256) NOT NULL,
"description" VARCHAR(250),
"error_class" VARCHAR(30) NOT NULL,
"active" CHAR(1) NOT NULL,
"reg_date" TIMESTAMP DEFAULT ((CURRENT_TIMESTAMP(0) AT TIME ZONE 'UTC'))
);
COMMENT ON TABLE error_classification IS E'Classification of job error codes+messages to system, user or others';
COMMENT ON COLUMN error_classification.id IS E'Sequential ID of the request. 1M offset to avoid overlapping IDs with retry module';
COMMENT ON COLUMN error_classification.error_source IS E'Source of the error: pilotErrorCode, exeErrorCode, ddmErrorCode...';
COMMENT ON COLUMN error_classification.error_code IS E'Error code number';
COMMENT ON COLUMN error_classification.error_diag IS E'Error message';
COMMENT ON COLUMN error_classification.description IS E'Any description or comment on the entry';
COMMENT ON COLUMN error_classification.error_class IS E'Error class: system, user,...';
COMMENT ON COLUMN error_classification.active IS E'Y or N. Depending on whether the entry is confirmed';
COMMENT ON COLUMN error_classification.reg_date IS E'Registration date, defaults to current timestamp';ALTER TABLE error_classification OWNER TO panda;
ALTER TABLE error_classification OWNER TO panda;
ALTER TABLE error_classification ADD PRIMARY KEY (id);
2 changes: 1 addition & 1 deletion schema/postgres/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.0.21
0.0.22

0 comments on commit cba8f51

Please sign in to comment.