graphql-engine/server/src-rsr/migrations/08_to_1.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

12 lines
354 B
SQL

ALTER TABLE hdb_catalog.hdb_relationship
ADD COLUMN comment TEXT NULL;
ALTER TABLE hdb_catalog.hdb_permission
ADD COLUMN comment TEXT NULL;
ALTER TABLE hdb_catalog.hdb_query_template
ADD COLUMN comment TEXT NULL;
UPDATE hdb_catalog.hdb_query_template
SET template_defn = json_build_object('type', 'select', 'args', template_defn->'select');