Skip to content

Commit

Permalink
test: Set primary key on Kingfisher Process tables
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed May 23, 2024
1 parent a880a06 commit bae9b6b
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions tests/fixtures/kingfisher_process.sql
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
CREATE TABLE IF NOT EXISTS collection (
id bigint NOT NULL,
id bigint NOT NULL PRIMARY KEY,
source_id text NOT NULL,
data_version timestamp with time zone NOT NULL,
store_start_at timestamp with time zone NOT NULL,
Expand All @@ -21,40 +21,40 @@ CREATE TABLE IF NOT EXISTS collection (
);

CREATE TABLE IF NOT EXISTS collection_file (
id bigint NOT NULL,
id bigint NOT NULL PRIMARY KEY,
filename text NOT NULL,
url text NOT NULL,
collection_id bigint NOT NULL
);

CREATE TABLE IF NOT EXISTS collection_file_item (
id bigint NOT NULL,
id bigint NOT NULL PRIMARY KEY,
number integer NOT NULL,
collection_file_id bigint NOT NULL
);

CREATE TABLE IF NOT EXISTS compiled_release (
id bigint NOT NULL,
id bigint NOT NULL PRIMARY KEY,
ocid text NOT NULL,
collection_id bigint NOT NULL,
collection_file_item_id bigint NOT NULL,
data_id bigint NOT NULL
);

CREATE TABLE IF NOT EXISTS data (
id bigint NOT NULL,
id bigint NOT NULL PRIMARY KEY,
hash_md5 text NOT NULL,
data jsonb NOT NULL
);

CREATE TABLE IF NOT EXISTS package_data (
id bigint NOT NULL,
id bigint NOT NULL PRIMARY KEY,
hash_md5 text NOT NULL,
data jsonb NOT NULL
);

CREATE TABLE IF NOT EXISTS record (
id bigint NOT NULL,
id bigint NOT NULL PRIMARY KEY,
ocid text NOT NULL,
collection_id bigint NOT NULL,
collection_file_item_id bigint NOT NULL,
Expand All @@ -63,7 +63,7 @@ CREATE TABLE IF NOT EXISTS record (
);

CREATE TABLE IF NOT EXISTS release (
id bigint NOT NULL,
id bigint NOT NULL PRIMARY KEY,
release_id text NOT NULL,
ocid text NOT NULL,
collection_id bigint NOT NULL,
Expand Down

0 comments on commit bae9b6b

Please sign in to comment.