fp/services/migrations-schema/README.md

27 lines
855 B
Markdown
Raw Normal View History

2024-07-30 20:34:25 +00:00
# @futureporn/migrations
Here we handle migrations for the postgrest database.
2024-12-16 20:39:23 +00:00
@see https://github.com/zakpatterson/postgres-schema-migrations
2024-07-30 20:34:25 +00:00
2024-08-17 02:42:44 +00:00
Reminder: only write migrations that affect schema. (don't write migrations that affect data)
2024-07-30 20:34:25 +00:00
## K.I.S.S.
Keep It Stupidly Simple.
2024-08-17 02:42:44 +00:00
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.
```json
{
"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"
}
```