armand1m / golinks

A URL shortener implementation in Next.js and GraphQL.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

feat: a better database migration and seeding process

armand1m opened this issue · comments

Is your feature request related to a problem? Please describe.
The current database migration and seeding are fairly trivial:

  • in development it leverages the default behaviour of the postgres docker image, to run all scripts provided in a folder when initializing an empty database.
  • in production, there is none (which is the problem)

Implementing a better database migration process would help to apply changes to the database schema in production safely.

dbmate was introduced and this can be closed