-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #1370 graceful handling of webhook endpoint downtime
Fix #1369 As a shop owner I can see if a subscriber attempted checkout or not
- Loading branch information
1 parent
b533aa7
commit 44e4f10
Showing
6 changed files
with
149 additions
and
40 deletions.
There are no files selected for viewing
30 changes: 30 additions & 0 deletions
30
migrations/versions/8c008c1333d5_add_stripe_user_attempted_checkout_flow_.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,30 @@ | ||
"""add stripe_user_attempted_checkout_flow to Subscription | ||
Revision ID: 8c008c1333d5 | ||
Revises: 3447b58b5c69 | ||
Create Date: 2024-07-05 20:39:42.709426 | ||
""" | ||
|
||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
# revision identifiers, used by Alembic. | ||
revision = "8c008c1333d5" | ||
down_revision = "3447b58b5c69" | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
with op.batch_alter_table("subscription", schema=None) as batch_op: | ||
batch_op.add_column( | ||
sa.Column( | ||
"stripe_user_attempted_checkout_flow", sa.Boolean(), default=False | ||
) | ||
) | ||
|
||
|
||
def downgrade(): | ||
pass |
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
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