forked from mtusi2026/mtusi2026lab2
ЛР2: PostgreSQL + Valkey, сессии Basic/Bearer, миграции, compose, тесты, отчёт
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
# 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)
|
||||
|
||||
Reference in New Issue
Block a user