From 0dee6ae1676ae47524f96df447259e7b319dc2ca Mon Sep 17 00:00:00 2001 From: Maciej Ziarkowski Date: Thu, 29 Aug 2019 12:01:41 +0100 Subject: [PATCH] Add data migrations for bulk extracts --- migrations/011.bulk-extracts.down.sql | 1 + migrations/011.bulk-extracts.up.sql | 5 +++++ 2 files changed, 6 insertions(+) create mode 100644 migrations/011.bulk-extracts.down.sql create mode 100644 migrations/011.bulk-extracts.up.sql diff --git a/migrations/011.bulk-extracts.down.sql b/migrations/011.bulk-extracts.down.sql new file mode 100644 index 00000000..62f73283 --- /dev/null +++ b/migrations/011.bulk-extracts.down.sql @@ -0,0 +1 @@ +DROP TABLE IF EXISTS bulk_extracts; \ No newline at end of file diff --git a/migrations/011.bulk-extracts.up.sql b/migrations/011.bulk-extracts.up.sql new file mode 100644 index 00000000..a6bc27ae --- /dev/null +++ b/migrations/011.bulk-extracts.up.sql @@ -0,0 +1,5 @@ +CREATE TABLE IF NOT EXISTS bulk_extracts ( + extract_id serial PRIMARY KEY, + extracted_on timestamp NOT NULL, + extract_path text NOT NULL +); \ No newline at end of file