Changelog
Behaviour change
Removes a Hasura metadata catalog migration that was added in v2.22.0-beta.1
on the hdb_catalog.event_log
and hdb.event_invocation_logs
tables.
With this change, on upgrading to v2.22.0-beta.2
from v2.22.0-beta.1
, the following startup error will be thrown:
{
"detail": {
"kind": "catalog_migrate",
"info": { "code": "not-supported", "error": "Expected source catalog version <= 3, but the current version is 4", "path": "$"}
},
"level": "error",
"timestamp": "2023-03-28T10:17:24.289+0530",
"type": "startup"
}
To fix these errors run the following SQL on the database where the event triggers are defined on and restart the Hasura instance.
UPDATE hdb_catalog.hdb_source_catalog_version SET version = 3, upgraded_on= NOW();
ALTER table hdb_catalog.event_log ALTER COLUMN created_at SET DEFAULT NOW();
ALTER table hdb_catalog.event_invocation_logs ALTER COLUMN created_at SET DEFAULT NOW();