Skip to content

Commit d1ca881

Browse files
fix: Add citext extension in migration if not exists (#6188)
1 parent 0a5f6cd commit d1ca881

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

migrations/versions/ba651e8ce9a3_lowercase_discount_code.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515

1616
def upgrade():
17+
op.execute("create extension if not exists citext;", execution_options=None)
1718
op.execute("alter table discount_codes alter column code type citext;",
1819
execution_options=None)
1920
op.create_unique_constraint('uq_event_discount_code', 'discount_codes', ['event_id', 'code'])

0 commit comments

Comments
 (0)