mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-16 01:44:03 +03:00
58c44f55dd
GitOrigin-RevId: 1c8c4d60e033c8a0bc8b2beed24c5bceb7d4bcc8
35 lines
947 B
SQL
35 lines
947 B
SQL
CREATE FUNCTION hdb_catalog.gen_hasura_uuid() RETURNS uuid AS
|
|
'select gen_random_uuid()' LANGUAGE SQL;
|
|
|
|
ALTER TABLE hdb_catalog.hdb_version
|
|
ALTER COLUMN hasura_uuid
|
|
SET DEFAULT hdb_catalog.gen_hasura_uuid();
|
|
|
|
ALTER TABLE hdb_catalog.event_log
|
|
ALTER COLUMN id
|
|
SET DEFAULT hdb_catalog.gen_hasura_uuid();
|
|
|
|
ALTER TABLE hdb_catalog.event_invocation_logs
|
|
ALTER COLUMN id
|
|
SET DEFAULT hdb_catalog.gen_hasura_uuid();
|
|
|
|
ALTER TABLE hdb_catalog.hdb_action_log
|
|
ALTER COLUMN id
|
|
SET DEFAULT hdb_catalog.gen_hasura_uuid();
|
|
|
|
ALTER TABLE hdb_catalog.hdb_cron_events
|
|
ALTER COLUMN id
|
|
SET DEFAULT hdb_catalog.gen_hasura_uuid();
|
|
|
|
ALTER TABLE hdb_catalog.hdb_cron_event_invocation_logs
|
|
ALTER COLUMN id
|
|
SET DEFAULT hdb_catalog.gen_hasura_uuid();
|
|
|
|
ALTER TABLE hdb_catalog.hdb_scheduled_events
|
|
ALTER COLUMN id
|
|
SET DEFAULT hdb_catalog.gen_hasura_uuid();
|
|
|
|
ALTER TABLE hdb_catalog.hdb_scheduled_event_invocation_logs
|
|
ALTER COLUMN id
|
|
SET DEFAULT hdb_catalog.gen_hasura_uuid();
|