Skip to content

SigNoz is an open-source, OpenTelemetry-native observability platform for your team and their AI agents. Get logs, metrics, and traces in one tool with features like APM, distributed tracing, log management, infra monitoring, etc. Combined with SigNoz MCP and a native AI teammate (in SigNoz Cloud) it helps you build more resilient apps.

fix(add_pats): fix name of column (#7026)

Vibhu Pandey035999250eaa
diff --git a/pkg/sqlmigration/009_add_pats.go b/pkg/sqlmigration/009_add_pats.go
index 223b0bcf9e..ad6ae8f245 100644
--- a/pkg/sqlmigration/009_add_pats.go
+++ b/pkg/sqlmigration/009_add_pats.go
@@ -56,11 +56,10 @@ func (migration *addPats) Up(ctx context.Context, db *bun.DB) error {
return err
}
- // table:rules op:add column created_at
if _, err := db.
NewAddColumn().
Table("personal_access_tokens").
- ColumnExpr("role test not null default 'ADMIN'").
+ ColumnExpr("role TEXT NOT NULL DEFAULT 'ADMIN'").
Apply(WrapIfNotExists(ctx, db, "personal_access_tokens", "role")).
Exec(ctx); err != nil && err != ErrNoExecute {
return err