From 59368f3660d5af10f41dd5df2a3a06d3d44491b6 Mon Sep 17 00:00:00 2001 From: Piotr Biernat Date: Tue, 13 Jun 2023 21:03:44 +0200 Subject: [PATCH] added pricing service migrations --- .../pricing-svc/0001_create_base_tables.down.sql | 1 + .../pricing-svc/0001_create_base_tables.up.sql | 9 +++++++++ 2 files changed, 10 insertions(+) create mode 100644 deploy/db_migrations/pricing-svc/0001_create_base_tables.down.sql create mode 100644 deploy/db_migrations/pricing-svc/0001_create_base_tables.up.sql diff --git a/deploy/db_migrations/pricing-svc/0001_create_base_tables.down.sql b/deploy/db_migrations/pricing-svc/0001_create_base_tables.down.sql new file mode 100644 index 0000000..fc3c986 --- /dev/null +++ b/deploy/db_migrations/pricing-svc/0001_create_base_tables.down.sql @@ -0,0 +1 @@ +DROP TABLE IF EXISTS pricing.price; diff --git a/deploy/db_migrations/pricing-svc/0001_create_base_tables.up.sql b/deploy/db_migrations/pricing-svc/0001_create_base_tables.up.sql new file mode 100644 index 0000000..380305b --- /dev/null +++ b/deploy/db_migrations/pricing-svc/0001_create_base_tables.up.sql @@ -0,0 +1,9 @@ +CREATE TABLE IF NOT EXISTS pricing."price" +( + id uuid NOT NULL DEFAULT gen_random_uuid() +); + +ALTER TABLE IF EXISTS "pricing"."price" + OWNER to postgres; + +-- TODO ^^ PRIVILEGES... \ No newline at end of file