forked from mtusi2026/mtusi2026lab2
12 lines
501 B
Plaintext
12 lines
501 B
Plaintext
# Migrations are idempotent: re-running adds nothing
|
|
$ docker compose restart api # entrypoint runs migrations again
|
|
$ docker compose exec -T api python -m src.migrate
|
|
INFO:messenger.migrate:migrations up to date
|
|
|
|
$ docker compose exec -T postgres psql -U messenger -d messenger -c select version, applied_at from schema_migrations order by version;
|
|
version | applied_at
|
|
--------------+-------------------------------
|
|
001_init.sql | 2026-10-15 15:58:41.848316+00
|
|
(1 row)
|
|
|