forked from mtusi2026/mtusi2026lab2
ЛР 2: PostgreSQL, сессии в Valkey, кэш истории (трек 1)
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
# Миграции (2026-10-29T07:04:02Z)
|
||||
|
||||
## 1. С нуля (проект mtusi-lab2-fresh, пустой volume)
|
||||
Container mtusi-lab2-fresh-postgres-1 Healthy
|
||||
volume: mtusi-lab2-fresh_pgdata
|
||||
2026/10/29 07:04:09 OK 00001_create_users_table.sql (14.67ms)
|
||||
2026/10/29 07:04:09 OK 00002_create_chats_table.sql (6.31ms)
|
||||
2026/10/29 07:04:09 OK 00003_create_chat_members_table.sql (9.24ms)
|
||||
2026/10/29 07:04:09 OK 00004_create_messages_table.sql (10.81ms)
|
||||
2026/10/29 07:04:09 goose: successfully migrated database to version: 4
|
||||
List of relations
|
||||
Schema | Name | Type | Owner
|
||||
--------+------------------+-------+-----------
|
||||
public | chat_members | table | messenger
|
||||
public | chats | table | messenger
|
||||
public | goose_db_version | table | messenger
|
||||
public | messages | table | messenger
|
||||
public | users | table | messenger
|
||||
(5 rows)
|
||||
|
||||
0|t
|
||||
1|t
|
||||
2|t
|
||||
3|t
|
||||
4|t
|
||||
### повторный migrate на том же свежем volume
|
||||
2026/10/29 07:04:11 goose: no migrations to run. current version: 4
|
||||
Volume mtusi-lab2-fresh_pgdata Removed
|
||||
Network mtusi-lab2-fresh_default Removed
|
||||
|
||||
## 2. Повторный migrate на рабочем стенде (volume mtusi-lab2_pgdata сохраняется)
|
||||
до: 136 54 125 69369
|
||||
2026/10/29 07:04:14 goose: no migrations to run. current version: 4
|
||||
после: 136 54 125 69369
|
||||
Reference in New Issue
Block a user