Skip to content

Commit

Permalink
txapp: grant ownership to db owner is idempotent
Browse files Browse the repository at this point in the history
  • Loading branch information
brennanjl committed Jan 24, 2025
1 parent 385aad6 commit 43c3f72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion node/txapp/txapp.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ func (r *TxApp) GenesisInit(ctx context.Context, db sql.DB, genCfg *config.Genes
Hash: initialHash,
},
},
}, db, "GRANT owner TO $user", map[string]any{
}, db, "GRANT IF NOT GRANTED owner TO $user", map[string]any{
"user": genCfg.DBOwner,
}, nil)
if err != nil {
Expand Down

0 comments on commit 43c3f72

Please sign in to comment.