richdocuments icon indicating copy to clipboard operation
richdocuments copied to clipboard

ownCloud to Nextcloud migration step missing

Open elzody opened this issue 10 months ago • 2 comments

Describe the bug When migrating from ownCloud to Nextcloud and trying to enable the richdocuments app, the following error is emitted:

Database error when running migration 30709Date20201111104147 for app richdocuments There is no column with name canwrite on table oc_richdocuments_wopi

Seems to be related to this migration step: https://github.com/nextcloud/richdocuments/blob/65411eab01a17e103f3bc6274b71f2e0733b9a31/lib/Migration/Version30709Date20201111104147.php#L15

elzody avatar Mar 11 '25 18:03 elzody

Right, so we probably introduced it between forking and switching to migrations so the old database.xml file that introduced it was not covering that for a migration from oC.

juliusknorr avatar Mar 11 '25 19:03 juliusknorr

We could do the same as the easy way and drop tables before the first migration

https://github.com/owncloud/richdocuments/blob/master/appinfo/Migrations/Version20190310162809.php#L35-L37

juliusknorr avatar Mar 12 '25 15:03 juliusknorr