graphql-engine/server/lib
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
..
aeson-ordered Fix all warnings in internal libraries and enable -WError everywhere 2023-02-01 23:32:19 +00:00
api-tests server: revert changes to created_at column of 'hdb_catalog.event_log' 2023-03-29 10:33:30 +00:00
arrows-extra CI: Get the GHC version from VERSIONS.json for all GitHub workflows. 2023-03-27 18:53:18 +00:00
dc-api Fix non-determinism in expected ordering in agent test suite test 2023-03-27 02:22:51 +00:00
error-message [ci] test the libraries in server/lib 2023-02-02 17:32:48 +00:00
graphql-parser CI: Get the GHC version from VERSIONS.json for all GitHub workflows. 2023-03-27 18:53:18 +00:00
hasura-prelude CI: Get the GHC version from VERSIONS.json for all GitHub workflows. 2023-03-27 18:53:18 +00:00
incremental CI: Get the GHC version from VERSIONS.json for all GitHub workflows. 2023-03-27 18:53:18 +00:00
pg-client chore(pg-client: remove flaky running queries test 2023-03-28 14:37:41 +00:00
resource-pool [ci] test the libraries in server/lib 2023-02-02 17:32:48 +00:00
schema-parsers server: fix some hspec tests 2023-02-03 14:09:19 +00:00
test-harness server: revert changes to created_at column of 'hdb_catalog.event_log' 2023-03-29 10:33:30 +00:00