diff --git a/src/Model/Migration/Definitions.hs b/src/Model/Migration/Definitions.hs index 063bc985c..662178fa1 100644 --- a/src/Model/Migration/Definitions.hs +++ b/src/Model/Migration/Definitions.hs @@ -178,7 +178,7 @@ customMigrations = mapF $ \case ; |] - Migration20240312OAuth2 -> whenM (andM [ columnNotExists "user" "password_hash", columnExists "user" "authentication", columnExists "user" "last_ldap_synchronisation", columnExists "user" "ldap_primary_key" ]) $ do + Migration20240312OAuth2 -> whenM (andM [ columnNotExists "user" "password_hash", columnExists "user" "authentication", columnExists "user" "last_ldap_synchronisation", columnNotExists "user" "last_sync", columnExists "user" "ldap_primary_key" ]) $ do [executeQQ| ALTER TABLE "user" ADD COLUMN "password_hash" VARCHAR NULL; |] @@ -191,7 +191,7 @@ customMigrations = mapF $ \case |] [executeQQ| - ALTER TABLE "user" RENAME COLUMN "last_ldap_synchronisation" TO "password_hash"; + ALTER TABLE "user" RENAME COLUMN "last_ldap_synchronisation" TO "last_sync"; ALTER TABLE "user" DROP COLUMN "ldap_primary_key"; |]