Fix missing device columns when migrating from <1.0#145
Fix missing device columns when migrating from <1.0#145julien-nc merged 9 commits intojulien-nc:mainfrom
Conversation
f4dfedb to
d67007c
Compare
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
|
Thanks a lot for this PR.
Very rare these days 😁, congrats. Good that you set those columns to unsigned. I'm very curious to know what went wrong with the previous migration which was supposed to add those columns. The difference I can see is that you're using Which database system are you using? Postgres, MariaDB/MySQL, sqlite, Oracle? I pushed a few commits in your branch. I hope you don't mind.
|
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
|
I'll check how to fix the CI issues soon. |
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
…ould be absolute) Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
9c4ef63 to
39cbf2c
Compare
|
Thanks for merging this! I can confirm it's still working, having updated to version 1.2.0 I can't provide much insight on my it worked with |
Fixes #144
When upgrading to v1.0, having originally installed <v1.0 installed, some database columns for the
DeviceandSessionmodels aren't added. Those columns are:I looked through all the other database tables and no columns for any other classes appear to be missing.
I have created a new migration that adds these columns if they don't exist. I wasn't too sure on what to put for the
notnull,default, orunsignedparameters so I copied them from an earlier migration:Through manual testing it seems everything is working as it should! The show line and auto zoom features are now working and there are no errors in Firefox's JavaScript console or the Nextcloud logs.
*note: I did not vibe code this!