forked from mtusi2026/mtusi2026lab2
fixed read-after-write after failed cache invalidation and API restart
This commit is contained in:
+23
-20
@@ -1,23 +1,25 @@
|
||||
# Миграции (2026-10-29T11:33:55Z)
|
||||
# Миграции (2026-10-29T12:09:22Z)
|
||||
|
||||
## 1. С нуля (проект mtusi-lab2-fresh, пустой volume)
|
||||
Container mtusi-lab2-fresh-postgres-1 Healthy
|
||||
volume: mtusi-lab2-fresh_pgdata
|
||||
2026/10/29 11:34:02 OK 00001_create_users_table.sql (2.16ms)
|
||||
2026/10/29 11:34:02 OK 00002_create_chats_table.sql (1.07ms)
|
||||
2026/10/29 11:34:02 OK 00003_create_chat_members_table.sql (1.56ms)
|
||||
2026/10/29 11:34:02 OK 00004_create_messages_table.sql (1.74ms)
|
||||
2026/10/29 11:34:02 OK 00005_escape_nul_in_text.sql (1.64ms)
|
||||
2026/10/29 11:34:02 goose: successfully migrated database to version: 5
|
||||
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)
|
||||
2026/10/29 12:09:29 OK 00001_create_users_table.sql (1.98ms)
|
||||
2026/10/29 12:09:29 OK 00002_create_chats_table.sql (1.48ms)
|
||||
2026/10/29 12:09:29 OK 00003_create_chat_members_table.sql (1.65ms)
|
||||
2026/10/29 12:09:29 OK 00004_create_messages_table.sql (2.28ms)
|
||||
2026/10/29 12:09:29 OK 00005_escape_nul_in_text.sql (2.79ms)
|
||||
2026/10/29 12:09:29 OK 00006_create_cache_invalidations_table.sql (1.8ms)
|
||||
2026/10/29 12:09:29 goose: successfully migrated database to version: 6
|
||||
List of relations
|
||||
Schema | Name | Type | Owner
|
||||
--------+---------------------+-------+-----------
|
||||
public | cache_invalidations | table | messenger
|
||||
public | chat_members | table | messenger
|
||||
public | chats | table | messenger
|
||||
public | goose_db_version | table | messenger
|
||||
public | messages | table | messenger
|
||||
public | users | table | messenger
|
||||
(6 rows)
|
||||
|
||||
0|t
|
||||
1|t
|
||||
@@ -25,12 +27,13 @@ volume: mtusi-lab2-fresh_pgdata
|
||||
3|t
|
||||
4|t
|
||||
5|t
|
||||
6|t
|
||||
### повторный migrate на том же свежем volume
|
||||
2026/10/29 11:34:03 goose: no migrations to run. current version: 5
|
||||
2026/10/29 12:09:30 goose: no migrations to run. current version: 6
|
||||
Volume mtusi-lab2-fresh_pgdata Removed
|
||||
Network mtusi-lab2-fresh_default Removed
|
||||
|
||||
## 2. Повторный migrate на рабочем стенде (volume mtusi-lab2_pgdata сохраняется)
|
||||
до: 54 26 37 95882
|
||||
2026/10/29 11:34:04 goose: no migrations to run. current version: 5
|
||||
после: 54 26 37 95882
|
||||
до: 86 54 66 95925
|
||||
2026/10/29 12:09:32 goose: no migrations to run. current version: 6
|
||||
после: 86 54 66 95925
|
||||
|
||||
Reference in New Issue
Block a user