Skip to content

Commit

Permalink
Merge pull request #643 from authzed/migration-variable-name
Browse files Browse the repository at this point in the history
postgres: rename migration variable to reduce confusion
  • Loading branch information
jakedt authored Jun 6, 2022
2 parents 38bd780 + f67f709 commit 395c847
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"github.com/jackc/pgx/v4"
)

const createUniqueLivingTupleConstraint = `
const createUniqueLivingNamespaceConstraint = `
ALTER TABLE namespace_config
ADD CONSTRAINT uq_namespace_living UNIQUE (namespace, deleted_transaction);
`
Expand All @@ -25,7 +25,7 @@ func init() {
return err
}

if _, err := tx.Exec(ctx, createUniqueLivingTupleConstraint); err != nil {
if _, err := tx.Exec(ctx, createUniqueLivingNamespaceConstraint); err != nil {
return err
}
return nil
Expand Down

0 comments on commit 395c847

Please sign in to comment.