bookmarks icon indicating copy to clipboard operation
bookmarks copied to clipboard

update to 0.10.0 throws SQL error on Postgres

Open adsworth opened this issue 9 years ago • 1 comments

Steps to reproduce

  1. click update to 0.10.0 in Apps app.

Expected behaviour

the update should

Actual behaviour

An exception occurred while executing 'ALTER TABLE oc_bookmarks ALTER id TYPE SERIAL': SQLSTATE[42704]: Undefined object: 7 ERROR: type "serial" does not exist

Server configuration

Operating system: Linux Web server: Apache Database: Postgres PHP version: PHP7 Nextcloud version: (see Nextcloud admin page) 11.0.0

more info is not possible at the moment, since NC is stuck trying to upgrade the bookmarks app I'm stuck at that error. There is a similar error on server https://github.com/nextcloud/server/issues/4504 but nobody really understood what is happening and manually changing the field to the expected data type solved the issue.

adsworth avatar May 25 '17 14:05 adsworth

I fixed it. I migrated my database fom MySQL to Postgres using pgloader a while back. pgloader apperently translates some data type to bigint where as nextcloud expects integer. Changing all bigint fields of all tables to integer fields fixed the issue.

adsworth avatar May 25 '17 20:05 adsworth