mirror of
https://github.com/pocketbase/pocketbase.git
synced 2025-03-18 13:47:47 +02:00
fixed old column name to drop
This commit is contained in:
parent
9b5aaba34f
commit
fdf63d3912
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user