New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade from ownCloud 5.0.13 to 6.0.0 using PostgreSQL fails #6310
Comments
I got something similar here: An exception occurred while executing 'ALTER TABLE "properties" ALTER propertyvalue SET ': SQLSTATE[42601]: Syntax error: 7 ERREUR: erreur de syntaxe à la fin de l'entrée LINE 1: ALTER TABLE "properties" ALTER propertyvalue SET ^ |
I found the error. Doctrine tries to add a default value when nothing's defined inside the XML schema. Instead of adding 'drop default', it adds '' (empty default) which leads to be an invalid SQL request. |
Thanks for debugging this. @bartv2 Do you have an idea how to fix this? |
See owncloud-archive/3rdparty#64 It has fixed the migration problem for me |
The adjusted pull request owncloud-archive/3rdparty#64 (replace |
Do we really want to patch the Doctrine library here ? |
NO! |
Any other idea what we can do here? |
Reminds me a bit of this: #6261 |
I have just been reviewing 3rdparty#64 - this is not the way to go - looks like our schema generation is creating a default value which is invalid @bartv2 PLEASE! |
Can someone please post the whole error message ? |
With the full SQL if possible. |
It looks like in the DB schema has added "primary" and "unique" for The db schema does contain an empty default value, which should be correct. Needs further research. |
OK, I have some errors in the PostgreSQL log:
This repeats quite a few times, not sure its related to the issue. Then one time:
and then a lot of times:
Until I applied the patch. In the owncloud.log:
And those last messages repeat quite often. Now the only message I get in the log:
I hope that helps in any way. |
@NEOatNHNG I'm still trying to find out where the log file is on linux... not in /var/log 😦 |
this is the migration sql to be executed on pgsql:
|
The log from Postgresql... |
@PVince81 on debian it's in /var/log/postgresql/postgresql-9.1-main.log |
see https://github.com/Glandos/3rdparty/commit/29c4057fd554ca1ad9a69df14ab9cb4b69af962f It fixed for me an initial upgrade issue with pgsql9.3 |
Okay - I have to revert my comment from last night: looks like we really have to patch doctrine - thanks @butonic |
Hi I got this failure message updating to Version 6 with MYSQL . An exception occurred while executing 'ALTER TABLE @karlitschek Maybe we can discuss it Monday night, I just reverted to an old snapshot so we can try it out together. |
has been fixed upstream and then with owncloud-archive/3rdparty#65 |
Hello,
I am running ownCloud with CentOS 6.5 and PostgreSQL 8.4.18 as database. When trying to upgrade to ownCloud 6.0.0 the update fails with following message:
The text was updated successfully, but these errors were encountered: