1
0
mirror of https://github.com/pocketbase/pocketbase.git synced 2025-03-18 21:57:50 +02:00

fixed old column name to drop

This commit is contained in:
Gani Georgiev 2024-10-08 08:48:35 +03:00
parent 9b5aaba34f
commit fdf63d3912

View File

@ -588,7 +588,7 @@ func migrateOldCollections(txApp core.App, oldSettings *oldSettingsModel) error
}
// delete unnecessary auth columns
dropColumns := []string{"lastResetSentAt", "lastVerificationSentAt", "lastAuthAlertSentAt"}
dropColumns := []string{"lastResetSentAt", "lastVerificationSentAt", "lastLoginAlertSentAt"}
for _, drop := range dropColumns {
// ignore errors in case the columns don't exist
_, _ = txApp.DB().DropColumn(c.Name, drop).Execute()