forked from fossasia/open-event-server
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Addition and Updation of billing related fields (fossasia#6447)
- Loading branch information
1 parent
5eb5398
commit 2ddaae7
Showing
4 changed files
with
44 additions
and
6 deletions.
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
40 changes: 40 additions & 0 deletions
40
migrations/versions/rev-2019-09-15-08:29:32-d1c2b8711223_.py
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,40 @@ | ||
"""empty message | ||
Revision ID: d1c2b8711223 | ||
Revises: 9effd270a6ae | ||
Create Date: 2019-09-15 08:29:32.373041 | ||
""" | ||
|
||
from alembic import op | ||
import sqlalchemy as sa | ||
import sqlalchemy_utils | ||
|
||
|
||
# revision identifiers, used by Alembic. | ||
revision = 'd1c2b8711223' | ||
down_revision = '9effd270a6ae' | ||
|
||
|
||
def upgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.alter_column('events', 'is_billing_info_mandatory', | ||
existing_type=sa.BOOLEAN(), | ||
server_default='False', | ||
nullable=False) | ||
op.alter_column('orders', 'is_billing_enabled', | ||
existing_type=sa.BOOLEAN(), | ||
server_default='False', | ||
nullable=False) | ||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.alter_column('orders', 'is_billing_enabled', | ||
existing_type=sa.BOOLEAN(), | ||
nullable=True) | ||
op.alter_column('events', 'is_billing_info_mandatory', | ||
existing_type=sa.BOOLEAN(), | ||
nullable=True) | ||
# ### end Alembic commands ### |