graphql-engine/server/src-rsr/migrations/15_to_16.sql
Ajeet D'Souza a66fb42ce2 Make catalog metadata migrations work on all schema versions (fix #2826) (#2379)
* Separate DB and metadata migrations
* Refactor Migrate.hs to generate list of migrations at compile-time
* Replace ginger with shakespeare to improve performance
* Improve migration log messages
2019-10-11 00:13:57 -05:00

14 lines
324 B
SQL

CREATE TABLE hdb_catalog.hdb_query_collection
(
collection_name TEXT PRIMARY KEY,
collection_defn JSONB NOT NULL,
comment TEXT NULL,
is_system_defined boolean default false
);
CREATE TABLE hdb_catalog.hdb_allowlist
(
collection_name TEXT UNIQUE
REFERENCES hdb_catalog.hdb_query_collection(collection_name)
);