1
0
mirror of https://github.com/hasura/graphql-engine.git synced 2024-12-15 17:31:56 +03:00
graphql-engine/server/src-rsr/migrations/8_to_9.sql
Ajeet D'Souza a66fb42ce2 Make catalog metadata migrations work on all schema versions (fix ) ()
* 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);