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

6 lines
276 B
SQL

ALTER TABLE hdb_catalog.hdb_version
ADD COLUMN hasura_uuid UUID DEFAULT gen_random_uuid(),
ADD COLUMN cli_state JSONB NOT NULL DEFAULT '{}'::jsonb,
ADD COLUMN console_state JSONB NOT NULL DEFAULT '{}'::jsonb,
ADD CONSTRAINT hasura_uuid_pkey PRIMARY KEY (hasura_uuid);