-
-
Notifications
You must be signed in to change notification settings - Fork 42
[0.29.1] DB Migration fails #917
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
Comments
Glad that worked fine. I added this additional check with Yeah I took at look at the migration query and the newly added The new Edit: Your migration will probably be fine if you delete the custom logos, right? Could you please test it? |
ok deleted 2 rows from "client_logo", now it stops here:
|
Oh yeah, and that's because of late query / memory optimizations. I will fix it and do some more tests, thanks. |
If you have the DB available locally, you could test with #919 Edit: Oh, not yet. Let me set up some test DBs first. |
Now please test with #919. I can successfully migrate Hiqlite -> Postgres -> Hiqlite with this. I also added a custom logo for a client and made sure there is data in that table. This PR should make it work. |
Great thanks, will test and share results 👍 |
Fails:
not much inside:
|
"desc" might be a reserved word? https://www.postgresql.org/docs/current/sql-keywords-appendix.html |
Oh yeah, of course it is. Today is not my day apparently. ^^ Pushed the fix after doing additional tests and adding a custom scope + attribute config + attribute for user. Edit: These migrations are quite annoying, because I cannot use the existing queries, as the source database can be either hiqlite or Postgres and I don't want to trigger caching. |
I am sure this will be the last one :)
I might not be able to test more today, so I will update again as soon as possible ^^ |
Sorry for all the confusion. These migrations are a thing you cannot really integration-test easily. I created custom themes and even a custom webid entry now to make sure that the last 2 are working fine a well. |
No need to feel sorry, nice to see things improve! |
Today I tried to upgrade to v0.29.1 and it worked.
I had an old postgres db from v0.28.3.
First I tried to directly use to migrate into a new empty db from it, but it rejected it, because different major version.
I had created the db with:
createdb.exe -p 5412 -O rauthy -U postgres -w rauthy0291
So instead I dumped the current 0.28.3 AS BACKUP and THEN used this db and started v0.29.1 and it worked and is running, I can login, all OK.
Now I wanted to move to a new DB and again tried to set:
but it fails with:
Note:
This is running on windows compiled from commit 4ec5cae tag/v0.29.1
The text was updated successfully, but these errors were encountered: