Skip to content

Commit

Permalink
Make it work with v1.0.34
Browse files Browse the repository at this point in the history
  • Loading branch information
Rémi Verchère committed Nov 3, 2016
1 parent d66f014 commit 3197a96
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions kanboard-sqlite2mysql.sh
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,8 @@ createMysqlDump()
TRUNCATE TABLE plugin_schema_versions;
SET FOREIGN_KEY_CHECKS = 1;' > ${OUTPUT_FILE}

echo 'ALTER TABLE `tasks` CHANGE `column_id` `column_id` INT( 11 ) NULL;' >> ${OUTPUT_FILE}

sqlite_dump_data ${sqliteDbFile} >> ${OUTPUT_FILE}

echo 'ALTER TABLE users DROP COLUMN is_admin;
Expand All @@ -198,6 +200,8 @@ createMysqlDump()
ALTER TABLE project_has_users DROP COLUMN id;
ALTER TABLE project_has_users DROP COLUMN is_owner;' >> ${OUTPUT_FILE}

echo 'ALTER TABLE `tasks` CHANGE `column_id` `column_id` INT( 11 ) NOT NULL;' >> ${OUTPUT_FILE}

# For MySQL, we need to double the anti-slash (\\ instead of \)
# But we need to take care of Windows URL (e.g. C:\test\) in the JSON of project_activities (e.g. C:\test\" shall not become C:\\test\\" this will break the json...). Windows URL are transformed into Linux URL for this reason
cat ${OUTPUT_FILE} \
Expand Down

0 comments on commit 3197a96

Please sign in to comment.