-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
π error handling vip models ποΈ (#7184)
- Loading branch information
1 parent
eee4eb2
commit 70e88e8
Showing
4 changed files
with
52 additions
and
3 deletions.
There are no files selected for viewing
49 changes: 49 additions & 0 deletions
49
...tgres_database/migration/versions/611f956aa3e3_licensed_items_checkout_purchase_email_.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,49 @@ | ||
"""licensed items checkout/purchase email mandatory | ||
Revision ID: 611f956aa3e3 | ||
Revises: e71ea59858f4 | ||
Create Date: 2025-02-07 12:47:56.235193+00:00 | ||
""" | ||
import sqlalchemy as sa | ||
from alembic import op | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = "611f956aa3e3" | ||
down_revision = "e71ea59858f4" | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.alter_column( | ||
"resource_tracker_licensed_items_checkouts", | ||
"user_email", | ||
existing_type=sa.VARCHAR(), | ||
nullable=False, | ||
) | ||
op.alter_column( | ||
"resource_tracker_licensed_items_purchases", | ||
"user_email", | ||
existing_type=sa.VARCHAR(), | ||
nullable=False, | ||
) | ||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.alter_column( | ||
"resource_tracker_licensed_items_purchases", | ||
"user_email", | ||
existing_type=sa.VARCHAR(), | ||
nullable=True, | ||
) | ||
op.alter_column( | ||
"resource_tracker_licensed_items_checkouts", | ||
"user_email", | ||
existing_type=sa.VARCHAR(), | ||
nullable=True, | ||
) | ||
# ### end Alembic commands ### |
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 |
---|---|---|
|
@@ -75,7 +75,7 @@ | |
sa.Column( | ||
"user_email", | ||
sa.String, | ||
nullable=True, | ||
nullable=False, | ||
), | ||
sa.Column( | ||
"purchased_at", | ||
|
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