feat: add the admin columns and the frontend permissions table
- users.permissions and users.last_seen as additive columns - golem15_user_frontend_permissions (code, label, tab, comment) - User gains LastSeen, read-only CreatedAt and UpdatedAt and the filterByGroup list scope; none of them is serialized - migration tests roll back by position past the three new steps
This commit is contained in:
@@ -33,7 +33,7 @@ func TestAPITokenMigration(t *testing.T) {
|
||||
if oauthClientType != "text" {
|
||||
t.Fatalf("oauth_client_id type = %q, want text for legacy OAuth client IDs", oauthClientType)
|
||||
}
|
||||
if err := m.RollbackLast(); err != nil {
|
||||
if err := m.RollbackMigration(apiTokenMigrations[0]); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if db.Migrator().HasTable(&models.APIToken{}) {
|
||||
|
||||
Reference in New Issue
Block a user