-
-
Notifications
You must be signed in to change notification settings - Fork 455
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* admin can clone newsletter - remove unique constraint on newsletter subject - admin can clone newsletter * update coupon image --------- Co-authored-by: Son NK <son@simplelogin.io>
- Loading branch information
1 parent
a097e33
commit 75dd3cf
Showing
4 changed files
with
52 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
"""empty message | ||
Revision ID: 4bc54632d9aa | ||
Revises: 46ecb648a47e | ||
Create Date: 2023-11-07 14:02:17.610226 | ||
""" | ||
import sqlalchemy_utils | ||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
# revision identifiers, used by Alembic. | ||
revision = '4bc54632d9aa' | ||
down_revision = '46ecb648a47e' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.drop_index('ix_newsletter_subject', table_name='newsletter') | ||
op.create_index(op.f('ix_newsletter_subject'), 'newsletter', ['subject'], unique=False) | ||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.drop_index(op.f('ix_newsletter_subject'), table_name='newsletter') | ||
op.create_index('ix_newsletter_subject', 'newsletter', ['subject'], unique=True) | ||
# ### end Alembic commands ### |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.