Hi,
I will want migrate from SQLite to MariaDB, but I have a problem when I use the occ command.
It seems to have a problem with the primary key of the oc_preferences table.
Thanks,
Steps to reproduce
php occ db:convert-type --clear-schema mysql nextclouduser 127.0.0.1 nextcloud
- wait...
Expected behaviour
Migrate from SQLite to MariaDB.
Actual behaviour
The script exit with error.
[...]
0 [>---------------------------]oc_preferences
28/59 [=============>--------------] 47%
[Doctrine\DBAL\Exception\UniqueConstraintViolationException]
An exception occurred while executing 'INSERT INTO `oc_preferences` (`userid`, `appid`, `configkey`, `configvalue`) VALUES(?, ?, ?, ?)' with params ["XXXX", "calendar", "currentView", "month"]:
SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'XXXX-calendar-currentView' for key 'PRIMARY'
[Doctrine\DBAL\Driver\PDOException]
SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'XXXX-calendar-currentView' for key 'PRIMARY'
[PDOException]
SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'XXXX-calendar-currentView' for key 'PRIMARY'
Server configuration
Operating system: arch
Web server: nginx 1.12.0
Database: mariadb 10.1.23
PHP version: 7.1.5
Nextcloud version: 12.0.0.19
Updated from an older Nextcloud/ownCloud or fresh install:
Where did you install Nextcloud from: package arch
Hi,
I will want migrate from SQLite to MariaDB, but I have a problem when I use the
occcommand.It seems to have a problem with the primary key of the oc_preferences table.
Thanks,
Steps to reproduce
php occ db:convert-type --clear-schema mysql nextclouduser 127.0.0.1 nextcloudExpected behaviour
Migrate from SQLite to MariaDB.
Actual behaviour
The script exit with error.
Server configuration
Operating system: arch
Web server: nginx 1.12.0
Database: mariadb 10.1.23
PHP version: 7.1.5
Nextcloud version: 12.0.0.19
Updated from an older Nextcloud/ownCloud or fresh install:
Where did you install Nextcloud from: package arch