Fix http.response schema #25

Closed
opened 3 years ago by youainti · 1 comments
youainti commented 3 years ago (Migrated from gitea.kgjk.icu)

The schema currently laid out when the db is created looks something like

-- Table: http.responses

-- DROP TABLE IF EXISTS http.responses;

CREATE TABLE IF NOT EXISTS http.responses
(
    id integer NOT NULL DEFAULT nextval('http.responses_id_seq'::regclass),
    nct character varying(15) COLLATE pg_catalog."default",
    version smallint,
    url character varying(255) COLLATE pg_catalog."default",
    response_code smallint,
    response_date date,
    CONSTRAINT responses_pkey PRIMARY KEY (id)
)

TABLESPACE pg_default;

ALTER TABLE IF EXISTS http.responses
    OWNER to root;

GRANT SELECT ON TABLE http.responses TO history_reader;

GRANT INSERT, SELECT ON TABLE http.responses TO history_writer;

GRANT ALL ON TABLE http.responses TO root;

instead it should look like 020_HttpSchema.sql on commit 4a2b1ea2

Need to figure out why this isn't happening.

The schema currently laid out when the db is created looks something like ```sql -- Table: http.responses -- DROP TABLE IF EXISTS http.responses; CREATE TABLE IF NOT EXISTS http.responses ( id integer NOT NULL DEFAULT nextval('http.responses_id_seq'::regclass), nct character varying(15) COLLATE pg_catalog."default", version smallint, url character varying(255) COLLATE pg_catalog."default", response_code smallint, response_date date, CONSTRAINT responses_pkey PRIMARY KEY (id) ) TABLESPACE pg_default; ALTER TABLE IF EXISTS http.responses OWNER to root; GRANT SELECT ON TABLE http.responses TO history_reader; GRANT INSERT, SELECT ON TABLE http.responses TO history_writer; GRANT ALL ON TABLE http.responses TO root; ``` instead it should look like [020_HttpSchema.sql on commit 4a2b1ea2](https://gitea.kgjk.icu/Research/ClinicalTrialsDataProcessing/src/commit/4a2b1ea2ed56735ddbc2fc488a9a0fe0fa2b419f/AACT_downloader/ClinicalTrialHistory/docker-entrypoint-initdb.d/020_HttpSchema.sql) Need to figure out why this isn't happening.
youainti commented 3 years ago (Migrated from gitea.kgjk.icu)

Done in 5d2140accd where I changed the docker-compose to simplify the dependency chain.

Done in 5d2140accd6ec6847205f0dd7f8cc215a1682b39 where I changed the docker-compose to simplify the dependency chain.
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: youainti/ClinicalTrialsDataProcessing#25
Loading…
There is no content yet.