graphql-engine/server/src-rsr
Naveen Naidu 4e3dbed938 server: revert changes to created_at column of 'hdb_catalog.event_log'
This PR reverts the following two commits:
1. https://github.com/hasura/graphql-engine-mono/pull/8287
2. https://github.com/hasura/graphql-engine-mono/pull/8467

We are undoing a migration that was done on `hdb_catalog.event_log` table which was done in d4ae6a517da63f2f43567dc16fda135b3cd1d7e6 . And as such, users who were using event triggers on that version will come across the error:
```json
{"detail":{"info":{"code":"not-supported","error":"Expected source catalog version <= 3, but the current version is 4","path":"$"},"kind":"catalog_migrate"},"level":"error","timestamp":"2023-03-28T10:17:24.289+0530","type":"startup"}
{"code":"not-supported","error":"Expected source catalog version <= 3, but the current version is 4","path":"$"}
```
To fix these errors please run the following SQL on the source where event triggers were created on:
```
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();
```

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8534
GitOrigin-RevId: b6bbcce0163c8beed80619d3cea056e643b8c180
2023-03-29 10:33:30 +00:00
..
migrations Revert catalog version and migrations from #7034 2022-12-19 18:39:58 +00:00
mssql server: fix next_retry_at for MSSQL event triggers 2023-01-20 11:16:30 +00:00
pg_source_migrations server: revert changes to created_at column of 'hdb_catalog.event_log' 2023-03-29 10:33:30 +00:00
catalog_version.txt Revert catalog version and migrations from #7034 2022-12-19 18:39:58 +00:00
catalog_versions.txt ci: tag release v2.22.0 2023-03-29 09:53:09 +00:00
citus_table_metadata.sql Fix zendesk-5146. Add check for empty columns in unique constraints g… 2022-06-17 07:49:20 +00:00
clear_system_metadata.sql Make catalog metadata migrations work on all schema versions (fix #2826) (#2379) 2019-10-11 00:13:57 -05:00
cockroach_table_metadata.sql NDAT-207 fix unique constraints and indexes for cockroachdb 2022-10-21 14:03:55 +00:00
console.html frontend: switch cli and server to use the new nx assets 2023-01-25 12:07:01 +00:00
drop_pg_source.sql server, pro: event trigger auto cleanup (increment 2) 2022-09-13 08:34:52 +00:00
init_pg_source.sql server: revert changes to created_at column of 'hdb_catalog.event_log' 2023-03-29 10:33:30 +00:00
initialise.sql server: creating gen_hasura_uuid function should be idempotent 2021-11-10 07:59:31 +00:00
introspection.json adds basic support for remote schemas/schema stitching (#952) 2018-11-23 18:32:46 +05:30
mysql_table_metadata.sql mysql: Metadata awareness 2021-07-15 12:45:51 +00:00
pg_function_metadata.sql console: Hide timescaledb internal schema from data tab 2022-06-22 07:38:38 +00:00
pg_table_metadata.sql Fix zendesk-5146. Add check for empty columns in unique constraints g… 2022-06-17 07:49:20 +00:00
table_meta.sql console: Hide timescaledb internal schema from data tab 2022-06-22 07:38:38 +00:00
trigger.sql.shakespeare server: drop the dropping trigger logic while creating/recreating an event trigger 2022-04-01 10:39:35 +00:00