ЛР2: PostgreSQL + Valkey, сессии Basic/Bearer, миграции, compose, тесты, отчёт

This commit is contained in:
2026-10-15 19:17:22 +03:00
parent 65003b6119
commit 6808ed8c98
44 changed files with 2370 additions and 19 deletions
+11
View File
@@ -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)