feat: own shared user API tokens

This commit is contained in:
Jakub Zych
2026-10-04 22:15:57 +02:00
parent 8a658903ed
commit 0fe5b91b63
17 changed files with 926 additions and 35 deletions

View File

@@ -45,6 +45,7 @@ func TestCreateOrganisationsMigration(t *testing.T) {
"202609220006_create_user_throttle",
"202609220007_create_jwt_blacklist",
"202610020001_create_user_groups",
"202610040001_create_user_api_tokens",
}
if len(ids) != len(want) {
t.Fatalf("history = %v", ids)
@@ -55,8 +56,8 @@ func TestCreateOrganisationsMigration(t *testing.T) {
}
}
// user groups, jwt blacklist, throttle, extend-users, then organisations.
for range 5 {
// API tokens, user groups, jwt blacklist, throttle, extend-users, then organisations.
for range 6 {
if err := m.RollbackLast(); err != nil {
t.Fatal(err)
}