Kanboard: convert DB from mysql to sqlite
Last update
2025-08-17
2025-08-17
« — »
dump and convert SQL instructions from MySQL to Sqlite
1 2 3
mysqldump --skip-extended-insert --compact -p kanboard > db-myql.sql mysql2sqlite db-mysql.sql > db-sqlite.sql
create a new kanboard instance with sqlite and dump the DB
1
sqlite3 db.sqlite .dump > db-new.sql
spot schema differences between db-myql.sql / db-new.sql
schema changes in v1.2.47
- add data for new columns in table:
users--is_admin,is_project_adminprojects--is_everybody_allowed,default_swimlane,show_default_swimlaneproject_has_users--is_owner
- specify column insert order for table
tasks - prepend pragma statements:
1 2 3 4
PRAGMA journal_mode = WAL; PRAGMA synchronous = NORMAL; PRAGMA foreign_keys = OFF; PRAGMA user_version = 128;
- add data for new columns in table:
create the new DB
1
sqlite3 db.sqlite < db-sqlite_patched.sql
