diff --git a/ts/sql/migrations/41-uuid-keys.ts b/ts/sql/migrations/41-uuid-keys.ts index c38f8a196..d7736de7f 100644 --- a/ts/sql/migrations/41-uuid-keys.ts +++ b/ts/sql/migrations/41-uuid-keys.ts @@ -351,7 +351,7 @@ export default function updateToSchemaVersion41( const updateIdentityKey = db.prepare( ` - UPDATE identityKeys + UPDATE OR REPLACE identityKeys SET id = $newId, json = json_set(