Closed rnwgnr closed 3 years ago
That seems to be an issue for the server repo. IMHO occ db:convert-type should respect the existing constraints and migrate the correct way. Nothin, what we can do in the polls app, besides removing the constraints.
This issue is marked as stale, because it had no activity in the last 30 days. It will be closed in 5 days.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
What is going wrong?
I want to use
occ db:convert-type
to migrate from SQLite to MySQL. The conversion fails on migrating the entries on "oc_polls_comments" due to a foreign key constraint failure.To Reproduce Steps to reproduce the behavior:
occ db:convert-type mysql <...> <...> <...>
Expected behavior Database migration using
occ db:convert-type
works successfully with the Polls app installed.Screenshots
Information about your polls installation
Polls version? 1.7.5
Fresh installation or update from a prior version (from which one)? Update
How did you install this version?(Appstore or describe installation) AppStore
Information about your Instance of Nextcloud
Nextcloud version: 20.0.7
Nextcloud configuration:
Server configuration
Database: SQLite and MySQL 5.7
PHP version: 7.4
Are you using an external user-backend, if yes which one: No