We cannot update from 7.10.4 to 8.0 (8.1.1) (Postgres 13-alpine) It seems that the database is missing constraint. Has anyone an idea what happens?
mattermost-postgres-1 | 2023-09-01 21:02:20.112 CEST [568] ERROR: there is no unique or exclusion constraint matching the ON CONFLICT specification
mattermost-postgres-1 | 2023-09-01 21:02:20.112 CEST [568] STATEMENT: INSERT INTO Systems (Name,Value) VALUES ($1,$2) ON CONFLICT (name) DO UPDATE SET Value = $3
mattermost-mattermost-1 | {"timestamp":"2023-09-01 21:02:20.112 +02:00","level":"fatal","msg":"(app.App).DoPermissionsMigrations failed","caller":"app/migrations.go:588","error":
"doPermissionsMigration: We encountered an error saving the system property., failed to upsert system property: pq: there is no unique or exclusion constraint matching the ON CONF
LICT specification"}
mattermost-mattermost-1 exited with code 1
I have this Error message. It seems almost same. But your solution didnt fix it. Can you help?
“msg”:“(app.App).DoPermissionsMigrations failed”,“caller”:“app/migrations.go:588”,“error”:“doPermissionsMigration: We encountered an error saving the system property., failed to upsert system property: pq: there is no unique or exclusion constraint matching the ON CONFLICT specification”