Skip to content

fix: add MySQL-specific migration for 002_add_task_rank - #1

Open
iamviki90 wants to merge 4 commits into
castle-coders:mainfrom
iamviki90:fix/mysql-migration-002
Open

fix: add MySQL-specific migration for 002_add_task_rank#1
iamviki90 wants to merge 4 commits into
castle-coders:mainfrom
iamviki90:fix/mysql-migration-002

Conversation

@iamviki90

Copy link
Copy Markdown
Contributor

Summary

Added MySQL-specific version of the 002_add_task_rank migration to address syntax differences between SQLite and MySQL.

Changes

  • ✅ Added 002_add_task_rank.mysql.sql with MySQL-compatible syntax
  • ✅ Updated original migration file with notes about database-specific versions
  • ✅ Updated AGENTS.md with migration workflow and database-specific syntax documentation

Technical Details

  • MySQL reserves rank as a keyword → requires backticks
  • MySQL uses FLOAT instead of SQLite's REAL
  • Migration already applied to production on 2026-02-08

Testing

✅ Migration verified on production database (tasktracker@titanium):

mysql> DESCRIBE task;
...
rank    float    NO        NULL

Migration tracking added to /home/viki/clawd/deploy/task-tracker/MIGRATIONS.md

- build-and-push.sh: Multi-arch build script for AMD64+ARM64
- DEPLOYMENT.md: Complete deployment guide and troubleshooting
- k8s-deployment.yaml: Updated with viki namespace and correct config
- backend/Dockerfile: Fixed module imports and added pymysql
- MySQL reserves 'rank' keyword, requires backticks
- MySQL uses FLOAT instead of REAL
- Added 002_add_task_rank.mysql.sql for production deployment
- Updated AGENTS.md with migration workflow and database-specific notes
- Migration already applied to production (2026-02-08)
@iamviki90
iamviki90 force-pushed the fix/mysql-migration-002 branch from c47d07b to c252e7a Compare February 8, 2026 19:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant