-
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.
Merge branch 'main' of github.com:open-contracting/credere-backend in…
…to 299-new-fetch-method
- Loading branch information
Showing
7 changed files
with
105 additions
and
2 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
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
33 changes: 33 additions & 0 deletions
33
migrations/versions/63f2125bb242_credit_product_procurement_category.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,33 @@ | ||
"""credit product procurement category | ||
Revision ID: 63f2125bb242 | ||
Revises: 6a0d845e53cb | ||
Create Date: 2024-07-03 17:19:57.192737 | ||
""" | ||
|
||
from alembic import op | ||
import sqlalchemy as sa | ||
import sqlmodel # added | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = "63f2125bb242" | ||
down_revision = "6a0d845e53cb" | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade() -> None: | ||
op.add_column( | ||
"credit_product", | ||
sa.Column( | ||
"procurement_category_to_exclude", | ||
sqlmodel.sql.sqltypes.AutoString(), | ||
nullable=False, | ||
server_default="", | ||
), | ||
) | ||
|
||
|
||
def downgrade() -> None: | ||
op.drop_column("credit_product", "procurement_category_to_exclude") |
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,21 @@ | ||
"""empty message | ||
Revision ID: e92a5c6cf445 | ||
Revises: 63f2125bb242, c681e99808d6 | ||
Create Date: 2024-07-04 14:53:23.835649 | ||
""" | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = "e92a5c6cf445" | ||
down_revision = ("63f2125bb242", "c681e99808d6") | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade() -> None: | ||
pass | ||
|
||
|
||
def downgrade() -> None: | ||
pass |