Skip to content

Commit

Permalink
fix(add_pats): fix name of column
Browse files Browse the repository at this point in the history
  • Loading branch information
grandwizard28 committed Feb 4, 2025
1 parent aecbb71 commit 67723c9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/sqlmigration/009_add_pats.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 67723c9

Please # to comment.