diff --git a/tests/fixtures/kingfisher_process.sql b/tests/fixtures/kingfisher_process.sql index c28179e..735c4c1 100644 --- a/tests/fixtures/kingfisher_process.sql +++ b/tests/fixtures/kingfisher_process.sql @@ -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, @@ -21,20 +21,20 @@ 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, @@ -42,19 +42,19 @@ CREATE TABLE IF NOT EXISTS compiled_release ( ); 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, @@ -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,