fix(db): make legacy telegram_* columns nullable for Discord multi-platform #103

Closed
Toutsu wants to merge 0 commits from fix/discord-nullable-telegram-columns into main
Owner

Summary

Discord /newsession fails with PostgreSQL NOT NULL constraint violation on legacy telegram_* columns. This PR adds migration V023 to drop those constraints, allowing Discord (and future platforms) to create records without Telegram identifiers.

Changes

  • src/GmRelay.Bot/Migrations/V023__game_groups_telegram_chat_id_nullable.sql — ALTER TABLE dropping NOT NULL on:
    • game_groups.telegram_chat_id
    • game_groups.gm_telegram_id
    • players.telegram_id
  • Version synchronized to 3.0.10 across:
    • Directory.Build.props
    • compose.yaml
    • .gitea/workflows/deploy.yml
    • NavMenu.razor
    • DiscordProjectStructureTests.cs

Test plan

  • DiscordProjectStructureTests pass (8/8)
  • CI passes (format, build, tests, Trivy)
  • Deploy succeeds
  • Release published

Related

  • Fixes production error: null value in column "telegram_chat_id" violates not-null constraint
  • Follow-up to PR #102 (v3.0.9)
## Summary Discord `/newsession` fails with PostgreSQL `NOT NULL` constraint violation on legacy `telegram_*` columns. This PR adds migration V023 to drop those constraints, allowing Discord (and future platforms) to create records without Telegram identifiers. ## Changes - `src/GmRelay.Bot/Migrations/V023__game_groups_telegram_chat_id_nullable.sql` — ALTER TABLE dropping `NOT NULL` on: - `game_groups.telegram_chat_id` - `game_groups.gm_telegram_id` - `players.telegram_id` - Version synchronized to `3.0.10` across: - `Directory.Build.props` - `compose.yaml` - `.gitea/workflows/deploy.yml` - `NavMenu.razor` - `DiscordProjectStructureTests.cs` ## Test plan - [x] `DiscordProjectStructureTests` pass (8/8) - [ ] CI passes (format, build, tests, Trivy) - [ ] Deploy succeeds - [ ] Release published ## Related - Fixes production error: `null value in column "telegram_chat_id" violates not-null constraint` - Follow-up to PR #102 (v3.0.9)
Toutsu added 1 commit 2026-05-26 12:52:51 +03:00
fix(db): make legacy telegram_* columns nullable for Discord multi-platform
PR Checks / test-and-build (pull_request) Successful in 18m38s
c955e1572f
V023 migration drops NOT NULL constraints on:
- game_groups.telegram_chat_id
- game_groups.gm_telegram_id
- players.telegram_id

This allows Discord (and future platforms) to create players and
game_groups without legacy Telegram identifiers.

Bump version → 3.0.10

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Toutsu closed this pull request 2026-05-26 16:06:29 +03:00
Some checks are pending
PR Checks / test-and-build (pull_request) Successful in 18m38s

Pull request closed

Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Toutsu/GmRelayBot#103