forked from mtusi2026/mtusi2026lab2
fixed a bug with NUL in strings
This commit is contained in:
+15
-13
@@ -1,13 +1,14 @@
|
||||
# Миграции (2026-10-29T07:04:02Z)
|
||||
# Миграции (2026-10-29T11:33:55Z)
|
||||
|
||||
## 1. С нуля (проект mtusi-lab2-fresh, пустой volume)
|
||||
Container mtusi-lab2-fresh-postgres-1 Healthy
|
||||
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
|
||||
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
|
||||
--------+------------------+-------+-----------
|
||||
@@ -23,12 +24,13 @@ volume: mtusi-lab2-fresh_pgdata
|
||||
2|t
|
||||
3|t
|
||||
4|t
|
||||
5|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
|
||||
2026/10/29 11:34:03 goose: no migrations to run. current version: 5
|
||||
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
|
||||
до: 54 26 37 95882
|
||||
2026/10/29 11:34:04 goose: no migrations to run. current version: 5
|
||||
после: 54 26 37 95882
|
||||
|
||||
Reference in New Issue
Block a user