login: uses epochs for login throtting.

Closes #10937
This commit is contained in:
Leonard Gram
2018-02-16 17:25:46 +01:00
parent 2e9433c495
commit 0053be9882
5 changed files with 27 additions and 9 deletions
@@ -34,6 +34,7 @@ func addTableReplaceMigrations(mg *Migrator, from Table, to Table, migrationVers
copyTableData := fmt.Sprintf("copy %v %v to %v", to.Name, fromV, toV)
dropTable := fmt.Sprintf("drop %v", tmpTableName)
addDropAllIndicesMigrations(mg, fromV, from)
addTableRenameMigration(mg, from.Name, tmpTableName, fromV)
mg.AddMigration(createTable, NewAddTableMigration(to))
addTableIndicesMigrations(mg, toV, to)