feat(database): manage the schema with typeorm migrations

- replace synchronize with migrations, starting with a generated initial
  migration that adopts databases created by synchronize
- apply pending migrations in the docker container before the server,
  and refuse to start the server while migrations are pending
- share one entity list and data source between app, migration runner,
  typeorm cli and tests; tests run the real migrations
- add migration:run, migration:show and migration:generate scripts and
  a test that fails when entities and migrations differ
- exit with code 1 when startup fails
- bump version to 1.20.0
This commit is contained in:
ars9 committed 2026-09-30 21:45:42 +03:00
1 parent 5de9272281
commit 9f341719ef
17 files changed
+526 -80

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "liqa",
"version": "1.19.3",
"version": "1.20.0",
"private": true,
"engines": {
"node": ">=24"