graphql-engine/server/src-lib/Hasura/Eventing
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
..
ScheduledTrigger server: log when cron triggers are fetched from database for generating events 2023-02-07 12:23:42 +00:00
Common.hs multitenant: switch schema sync listener to polling mechanism 2023-03-14 04:39:34 +00:00
EventTrigger.hs server: revert changes to created_at column of 'hdb_catalog.event_log' 2023-03-29 10:33:30 +00:00
HTTP.hs Simplify Transformable Requests Module 2023-03-22 00:01:07 +00:00
ScheduledTrigger.hs Simplify Transformable Requests Module 2023-03-22 00:01:07 +00:00