test(updates): account for the oauth-identities migration in history and rollback counts
This commit is contained in:
@@ -49,6 +49,7 @@ func TestCreateOrganisationsMigration(t *testing.T) {
|
||||
"202610040001_create_user_api_tokens",
|
||||
"202610040002_add_users_last_seen",
|
||||
"202610040003_create_frontend_permissions",
|
||||
"202610050001_create_oauth_identities",
|
||||
}
|
||||
if len(ids) != len(want) {
|
||||
t.Fatalf("history = %v", ids)
|
||||
@@ -59,9 +60,9 @@ func TestCreateOrganisationsMigration(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
// The three admin migrations, API tokens, user groups, jwt blacklist,
|
||||
// OAuth identities, the three admin migrations, API tokens, user groups, jwt blacklist,
|
||||
// throttle, extend-users, then organisations.
|
||||
for range 9 {
|
||||
for range 10 {
|
||||
if err := m.RollbackLast(); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user