forked from jsocol/pystatsd
-
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.
* Back to global variables * Migration * Update tests/api/namespace/test_variables.py Co-authored-by: Vincent GENTY <Wellan89@users.noreply.github.com> * Update tests/api/namespace/test_variables.py Co-authored-by: Vincent GENTY <Wellan89@users.noreply.github.com> * Review + upgrade requirements * Upgrade precommits Co-authored-by: Vincent GENTY <Wellan89@users.noreply.github.com>
- Loading branch information
Showing
13 changed files
with
184 additions
and
175 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
42 changes: 42 additions & 0 deletions
42
alembic/versions/2022-03-10_add_instance_and_drop_use_case_from_.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,42 @@ | ||
"""add_instance_and_drop_use_case_from_variables | ||
Revision ID: 7ed1ef8a6308 | ||
Revises: 0a64fe57718d | ||
Create Date: 2022-03-10 10:37:46.956974 | ||
""" | ||
import sqlalchemy as sa | ||
from sqlalchemy.dialects.postgresql import UUID | ||
|
||
from alembic import op | ||
|
||
|
||
revision = "7ed1ef8a6308" | ||
down_revision = "0a64fe57718d" | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
op.add_column( | ||
"variables", | ||
sa.Column( | ||
"instance_id", | ||
sa.Integer, | ||
nullable=False, | ||
), | ||
) | ||
op.drop_column("variables", "use_case_uuid") | ||
|
||
|
||
def downgrade(): | ||
op.add_column( | ||
"variables", | ||
sa.Column( | ||
"use_case_uuid", | ||
UUID, | ||
sa.ForeignKey("use_cases.uuid", ondelete="CASCADE"), | ||
nullable=False, | ||
), | ||
) | ||
op.drop_column("variables", "instance_id") |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# File generated automatically. Do not update it manually. | ||
# Update files in the requirements folder instead. | ||
pip==22.0.3 | ||
setuptools==60.8.2 | ||
pip==22.0.4 | ||
setuptools==60.9.3 | ||
wheel==0.37.1 |
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
Oops, something went wrong.