-
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.
- Loading branch information
1 parent
53a31cb
commit bec976b
Showing
2 changed files
with
54 additions
and
19 deletions.
There are no files selected for viewing
35 changes: 35 additions & 0 deletions
35
...stgres_database/migration/versions/a3a58471b0f1_add_credit_transaction_classification_.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,35 @@ | ||
"""add credit transaction classification enums | ||
Revision ID: a3a58471b0f1 | ||
Revises: 307017ee1a49 | ||
Create Date: 2025-01-14 13:44:05.025647+00:00 | ||
""" | ||
import sqlalchemy as sa | ||
from alembic import op | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = "a3a58471b0f1" | ||
down_revision = "307017ee1a49" | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
op.execute(sa.DDL("ALTER TYPE credittransactionstatus ADD VALUE 'IN_DEBT'")) | ||
op.execute( | ||
sa.DDL( | ||
"ALTER TYPE credittransactionclassification ADD VALUE 'ADD_WALLET_EXCHANGE'" | ||
) | ||
) | ||
op.execute( | ||
sa.DDL( | ||
"ALTER TYPE credittransactionclassification ADD VALUE 'DEDUCT_WALLET_EXCHANGE'" | ||
) | ||
) | ||
|
||
|
||
def downgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
pass | ||
# ### 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