Align MySQL migration 008 with sqlite/postgres (H-12 partial) #116
No reviewers
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
qwc-open/asiakirjat!116
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/migration-008-mysql-default"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
DEFAULT ''toupload_logs.filenamein MySQL migration 008 so it matches sqlite and postgres.internal/store/sql/upload_log.go:20) always passesfilename, andTEXT NOT NULL DEFAULT 'archive'on the same table proves the targeted MySQL version supportsDEFAULTonTEXT.The companion piece — a
TestMigrationsAllDialectsusing testcontainers to assert column-list parity — is deferred; it needs Docker available wherever tests run, and the current sandbox doesn't have it.Test plan
go test ./internal/database/... ./internal/store/...— green.Audit item: H-12 (High / Arch), partial.
🤖 Generated with Claude Code