fp/services/migrations
CJ_Clippy f342bf9671
ci / build (push) Failing after 1s Details
implement record retrying
2024-08-19 20:27:40 -08:00
..
migrations implement record retrying 2024-08-19 20:27:40 -08:00
README.md chatops progress 2024-08-16 18:42:44 -08:00
index.js chatops progress 2024-08-16 18:42:44 -08:00
package.json chatops progress 2024-08-16 18:42:44 -08:00
pnpm-lock.yaml progress 2024-07-30 12:34:25 -08:00

README.md

@futureporn/migrations

Here we handle migrations for the postgrest database.

@see https://github.com/thomwright/postgres-migrations

Reminder: only write migrations that affect schema. (don't write migrations that affect data)

K.I.S.S.

Keep It Stupidly Simple.

We are keeping this module as simple as possible. This means pure JS (no typescript!)

troubleshooting

If you see the following error, graphile_worker likely hasn't had a chance to create it's functions. Make sure that a graphile_worker is running, so it can automatically create the necessary functions.

{
  "code": "42883",
  "details": null,
  "hint": "No function matches the given name and argument types. You might need to add explicit type casts.",
  "message": "function graphile_worker.add_job(text, json, max_attempts => integer) does not exist"
}