mirror of
https://github.com/go-vikunja/vikunja.git
synced 2026-03-22 21:15:18 -05:00
[PR #1903] [MERGED] fix: handle MySQL 8 CREATE INDEX without IF NOT EXISTS support #3774
Reference in New Issue
Block a user
Delete Branch "%!s()"
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?
📋 Pull Request Information
Original PR: https://github.com/go-vikunja/vikunja/pull/1903
Author: @Copilot
Created: 11/28/2025
Status: ✅ Merged
Merged: 11/28/2025
Merged by: @kolaente
Base:
main← Head:copilot/update-migration-remove-if-not-exists📝 Commits (5)
d87b879Initial plan6f293d4fix: handle MySQL 8 CREATE INDEX without IF NOT EXISTS supportd00f72arefactor: use consistent error handling pattern with existing migration75d15adfix: handle MySQL 8 CREATE INDEX without IF NOT EXISTS support042bfe7Merge branch 'main' into copilot/update-migration-remove-if-not-exists📊 Changes
2 files changed (+20 additions, -14 deletions)
View changed files
📝
go.sum(+0 -12)📝
pkg/migration/20251108154913.go(+20 -2)📄 Description
MySQL 8 does not support
CREATE INDEX IF NOT EXISTSsyntax, causing migration20251108154913to fail with SQL syntax error.Fixes #1833
Changes
db.Type()and use appropriate SQL syntax per engineCREATE INDEX IF NOT EXISTSCREATE INDEXwith error handling for duplicate key (Error 1061)Follows existing pattern from migration
20241028131622.go:Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.