-
Notifications
You must be signed in to change notification settings - Fork 1.9k
feat: Addition and Updation of billing related fields #6447
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 3 commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
fcf6de4
enh: Addition of billing info related fields
kushthedude f0641e0
Update rev-2019-09-15-08:29:32-d1c2b8711223_.py
kushthedude 936264a
Update rev-2019-09-15-08:29:32-d1c2b8711223_.py
kushthedude 68ed374
Merge branch 'development' into fields
kushthedude 2f50044
Adding another function
kushthedude 249d067
Update orders.py
kushthedude 2b65543
Merge branch 'development' into fields
kushthedude ae86e49
Update orders.py
kushthedude 5848ae5
Merge branch 'development' into fields
kushthedude 12b5842
Merge branch 'development' into fields
kushthedude a4216ad
Merge branch 'development' into fields
iamareebjamal 2d9c08d
Merge branch 'development' into fields
iamareebjamal 9d31d76
Merge branch 'development' into fields
kushthedude d6cfe4f
Merge branch 'development' into fields
kushthedude 8ddaa3c
Merge branch 'development' into fields
kushthedude 61d2671
Merge branch 'development' into fields
kushthedude 67beb26
Merging the functions
kushthedude 124f19f
Merge branch 'development' into fields
kushthedude 38933b8
Addition of `server_default`
kushthedude df8798d
Removing unused arg
kushthedude 2db0673
Merge branch 'development' into fields
kushthedude 687bd2a
Merge branch 'development' into fields
kushthedude 306cdc3
Updating migration version
kushthedude cb7265d
Final fixes
kushthedude 873980c
Merge branch 'development' into fields
kushthedude c74d885
Hound violation
kushthedude f07085a
Syntax enhancement
kushthedude File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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
39 changes: 39 additions & 0 deletions
39
migrations/versions/rev-2019-09-15-08:29:32-d1c2b8711223_.py
This file contains hidden or 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,39 @@ | ||
| """empty message | ||
| Revision ID: d1c2b8711223 | ||
| Revises: 7c32ba647a18 | ||
| 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 = '7c32ba647a18' | ||
|
|
||
|
|
||
| def upgrade(): | ||
| # ### commands auto generated by Alembic - please adjust! ### | ||
| op.alter_column('events', 'is_billing_info_mandatory', | ||
| existing_type=sa.BOOLEAN(), | ||
| nullable=False) | ||
kushthedude marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| op.alter_column('orders', 'is_billing_enabled', | ||
| existing_type=sa.BOOLEAN(), | ||
| server_default='False', | ||
| nullable=False) | ||
iamareebjamal marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| # ### 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 ### | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.