W
Windmill13mo ago
Enter

Upgrade 1.99 to 1.108

I get the following error when I want to upgrade to the new version: : 2023-06-01T17:57:36.192230872Z Error: Migrating database: while executing migrations: error returned from database: null value in column "app_id" of relation "app_version" violates not-null constraint
21 Replies
rubenf
rubenf13mo ago
Is it possible that you have an app in the demo or starter workspace ? Could you delete it if it's not used ? You can also do that from psql directly
Enter
Enter13mo ago
I've got nothing in the demo : "starter"
Enter
Enter13mo ago
Enter
Enter13mo ago
What do you think the problem is?
rubenf
rubenf13mo ago
So both demo and starter ?
Enter
Enter13mo ago
And I have my personnal workspace
rubenf
rubenf13mo ago
Is your personal workspace one of starter or demo ?
Enter
Enter13mo ago
No I have created this workspace
rubenf
rubenf13mo ago
Is there a way you could go in psql and list all the app_version ?
Enter
Enter13mo ago
I'm going to co to pg
Enter
Enter13mo ago
Enter
Enter13mo ago
Logs don't look good
rubenf
rubenf13mo ago
Oh did you delete the admins setup app ?
Enter
Enter13mo ago
I've just deleted it :/
rubenf
rubenf13mo ago
Is there any way you could pull your workspace with the CLI and then just reset the db and push it again ? (and do the upgrade in between)
Enter
Enter13mo ago
Oh yes, I see... I can't re-create the script in the right place
rubenf
rubenf13mo ago
Yes you won't be able to since group space is hidden from the ui Easiest is to use the CLI to pull with --plain-secrets, reset database, upgrade, then push again
Enter
Enter13mo ago
It's ok @rubenf 🙂 I fixed that with pgadmin!
Enter
Enter13mo ago
Feedback about this update: prevent users from deleting these 2 scripts?
rubenf
rubenf13mo ago
👍 done in latest
Enter
Enter13mo ago
Thanks @rubenf 🙂