mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-18 13:05:56 +08:00
fix(add_pats): fix name of column (#7026)
This commit is contained in:
parent
aecbb71ce4
commit
035999250e
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user