-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Successful Migration - Kanboard 1.2.19 #30
Comments
One small issue so far: All newlines in task descriptions are now literal "\n" |
Hyperlinks inside task descriptions have all gone from https:// to https:/ (one slash) |
Fixed by
Inconsistent in my case somehow, and only one broken link, didn't bother to fix Also I HIGHLY advise using this command to import the data: By using source the error just gets spammed away and left unseen if you cant scroll up far enougth.
That way you should have 100% of data imported If you use automatic actions then search the sql file for INSERT INTO actions (`id`,`project_id`,`event_name`,`action_name`) VALUES(8,1,'task.move.column','/Kanboard/Plugin/Group_assign/Action/AssignGroup');
INSERT INTO actions (`id`,`project_id`,`event_name`,`action_name`) VALUES(9,1,'task.move.column','/Kanboard/Plugin/Group_assign/Action/AssignGroup'); correct: INSERT INTO actions (`id`,`project_id`,`event_name`,`action_name`) VALUES(8,1,'task.move.column','\\Kanboard\\Plugin\\Group_assign\\Action\\AssignGroup');
INSERT INTO actions (`id`,`project_id`,`event_name`,`action_name`) VALUES(9,1,'task.move.column','\\Kanboard\\Plugin\\Group_assign\\Action\\AssignGroup'); edit: also works on KB 1.2.20 |
Thanks for this great tool !! :)
I've just successfully migrated a local Fedora 33 kanboard server and a CentOS8 vps kanboard server using the latest commit from this repo (f67cc78)
My Steps to success for each server:
Make sure you have the right pdo/mysql drivers for your OS (omitted)
Stop apache with
sudo systemctl stop httpd
to prevent requests messing with the database before you're done.Backup SQLite database somewhere
Create MariaDB database with:
CREATE DATABASE kanboard CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
Create dedicated MariaDB user with appropriate permissions on the new database (omitted)
Create the MySQL Dump:
./kanboard-sqlite2mysql.sh /path/to/kanboard
Worry endlessly about the error message
Error: near line 2: near ";": syntax error
Edit the dumped sql file to include the three lines for encoding at the top:
SET NAMES utf8mb4 COLLATE utf8mb4_unicode_ci;
SET CHARACTER SET 'utf8mb4';
SET SESSION collation_connection = 'utf8mb4_general_ci';
Edit /path/to/kanboard/config.php to use the mysql database driver, and set your database details
Use kanboard's common.php script to create an empty database with the command:
php /path/to/kanboard/app/common.php
Enter the MariaDB shell (I'm lazy so I just did
sudo mysql
)Select the new database with:
USE kanboard;
Import the dumped file with:
source /path/to/db-mysql.sql
Move the old sqlite file somewhere just to be sure
Start apache again with
sudo systemctl start httpd
Joy
Thanks again!
The text was updated successfully, but these errors were encountered: