From d1f764982dcde658d2b930fdbc8d5e4de84c4a70 Mon Sep 17 00:00:00 2001 From: Masaya Tojo Date: Sun, 27 Aug 2023 23:02:22 +0900 Subject: Add schema --- deploy/schema.sql | 7 +++++++ revert/schema.sql | 7 +++++++ sqitch.plan | 1 + verify/schema.sql | 7 +++++++ 4 files changed, 22 insertions(+) create mode 100644 deploy/schema.sql create mode 100644 revert/schema.sql create mode 100644 verify/schema.sql diff --git a/deploy/schema.sql b/deploy/schema.sql new file mode 100644 index 0000000..6ad1074 --- /dev/null +++ b/deploy/schema.sql @@ -0,0 +1,7 @@ +-- Deploy photos:schema to pg + +BEGIN; + +CREATE SCHEMA photos; + +COMMIT; diff --git a/revert/schema.sql b/revert/schema.sql new file mode 100644 index 0000000..1f6b1c1 --- /dev/null +++ b/revert/schema.sql @@ -0,0 +1,7 @@ +-- Revert photos:schema from pg + +BEGIN; + +DROP SCHEMA photos; + +COMMIT; diff --git a/sqitch.plan b/sqitch.plan index a153a40..ec96975 100644 --- a/sqitch.plan +++ b/sqitch.plan @@ -2,3 +2,4 @@ %project=photos %uri=http://git.private.tojo.tokyo/ +schema 2023-08-27T13:52:33Z Masaya Tojo,,, # Add schema for all photos objects. diff --git a/verify/schema.sql b/verify/schema.sql new file mode 100644 index 0000000..f732792 --- /dev/null +++ b/verify/schema.sql @@ -0,0 +1,7 @@ +-- Verify photos:schema on pg + +BEGIN; + +SELECT pg_catalog.has_schema_privilege('photos', 'usage'); + +ROLLBACK; -- cgit v1.2.3