From 3f78eaa2c63b6812b76960e13eb391a71bf657b7 Mon Sep 17 00:00:00 2001 From: A Date: Sun, 19 Jul 2026 20:39:48 +0800 Subject: [PATCH] fix: sync postgres sqlc migration gate Sync telesrv 00daf89 (fix(postgres): sync sqlc model and migration gate). --- internal/store/postgres/sqlcgen/models.go | 2 ++ .../star_gift_lifecycle_migration_integration_test.go | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/internal/store/postgres/sqlcgen/models.go b/internal/store/postgres/sqlcgen/models.go index 24a3dbf6..a7e5af97 100644 --- a/internal/store/postgres/sqlcgen/models.go +++ b/internal/store/postgres/sqlcgen/models.go @@ -692,6 +692,8 @@ type ChannelMessage struct { DeleteDate int32 DeleteMessageIds []byte RequestFingerprint []byte + SuggestedPost []byte + PaidMessageStars int64 } type ChannelMessageMedium struct { diff --git a/internal/store/postgres/star_gift_lifecycle_migration_integration_test.go b/internal/store/postgres/star_gift_lifecycle_migration_integration_test.go index 7f25e224..82a3af0c 100644 --- a/internal/store/postgres/star_gift_lifecycle_migration_integration_test.go +++ b/internal/store/postgres/star_gift_lifecycle_migration_integration_test.go @@ -14,7 +14,7 @@ func TestStarGiftLifecycleMigrationsApply(t *testing.T) { if err != nil { t.Fatalf("migrate star gift lifecycle schema: %v", err) } - if status.Dirty || status.Empty || status.Version != 118 { - t.Fatalf("migration status = %+v, want clean version 118", status) + if status.Dirty || status.Empty || status.Version != 119 { + t.Fatalf("migration status = %+v, want clean version 119", status) } }