Enter
Enter2y ago

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
rubenf2y 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
EnterOP2y ago
I've got nothing in the demo : "starter"
Enter
EnterOP2y ago
Enter
EnterOP2y ago
What do you think the problem is?
rubenf
rubenf2y ago
So both demo and starter ?
Enter
EnterOP2y ago
And I have my personnal workspace
rubenf
rubenf2y ago
Is your personal workspace one of starter or demo ?
Enter
EnterOP2y ago
No I have created this workspace
rubenf
rubenf2y ago
Is there a way you could go in psql and list all the app_version ?
Enter
EnterOP2y ago
I'm going to co to pg
Enter
EnterOP2y ago
Enter
EnterOP2y ago
Logs don't look good
rubenf
rubenf2y ago
Oh did you delete the admins setup app ?
Enter
EnterOP2y ago
I've just deleted it :/
rubenf
rubenf2y 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
EnterOP2y ago
Oh yes, I see... I can't re-create the script in the right place
rubenf
rubenf2y 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
EnterOP2y ago
It's ok @rubenf 🙂 I fixed that with pgadmin!
Enter
EnterOP2y ago
Feedback about this update: prevent users from deleting these 2 scripts?
rubenf
rubenf2y ago
👍 done in latest
Enter
EnterOP2y ago
Thanks @rubenf 🙂