$ make test-migrations
./scripts/check_migrations.sh
2026-10-20 04:55:31.041 | INFO     | infrastructure.dependencies.database:create_pool:69 - Установка соединения с базой данных psql
2026-10-20 04:55:31.118 | INFO     | infrastructure.dependencies.database:create_pool:99 - Соединение с базой данных psql установлено. DB_NAME: test, pool: 2..10
пустой volume: таблиц в public = 0
API до migrate: В БД не применены миграции [1, 2]: сначала запустите migrate
2026-10-20 04:55:31.132 | INFO     | infrastructure.dependencies.database:apply_migrations:152 - Применена миграция 0001_init.sql
2026-10-20 04:55:31.134 | INFO     | infrastructure.dependencies.database:apply_migrations:152 - Применена миграция 0002_message_idempotency.sql
2026-10-20 04:55:31.134 | INFO     | infrastructure.dependencies.database:apply_migrations:157 - Схема БД в актуальной версии
запуск 1: schema_migrations = [(1, '0001_init'), (2, '0002_message_idempotency')], таблиц = 7
2026-10-20 04:55:31.135 | INFO     | infrastructure.dependencies.database:apply_migrations:157 - Схема БД в актуальной версии
запуск 2: schema_migrations = [(1, '0001_init'), (2, '0002_message_idempotency')], таблиц = 7
2026-10-20 04:55:31.136 | INFO     | infrastructure.dependencies.database:apply_migrations:157 - Схема БД в актуальной версии
запуск 3: schema_migrations = [(1, '0001_init'), (2, '0002_message_idempotency')], таблиц = 7
2026-10-20 04:55:31.136 | INFO     | infrastructure.dependencies.database:check_migrations:183 - Схема БД совместима: версия 2
API после migrate: схема совместима
$ BUILDX_NO_DEFAULT_ATTESTATIONS=1 ./scripts/check_previous_version.sh
previous version image: mtusi-messenger:compat-aa971fb (aa971fb feat: перенос core-логики 2 лабы)
schema on stand: 0001_init, 0002_message_idempotency
{"ready": true, "register": 201, "login": 201, "create_chat": 201, "send_message_without_key": 201, "read_history": 200, "history_matches": true}
startup log: ['Схема БД в актуальной версии']
PASS: previous API version works on the current schema (expand-only migration)
