-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #611.
- Loading branch information
Nikita Karetnikov
committed
Nov 5, 2023
1 parent
0760fa2
commit 00ee1ca
Showing
3 changed files
with
88 additions
and
15 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
conda-store-server/conda_store_server/alembic/versions/64a749e87619_add_build_key_version.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,28 @@ | ||
"""add build_key_version | ||
Revision ID: 64a749e87619 | ||
Revises: b387747ca9b7 | ||
Create Date: 2023-11-05 00:59:57.132192 | ||
""" | ||
import sqlalchemy as sa | ||
from alembic import op | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = "64a749e87619" | ||
down_revision = "b387747ca9b7" | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
op.add_column( | ||
"build", | ||
sa.Column( | ||
"build_key_version", sa.Integer(), nullable=False, server_default="1" | ||
), | ||
) | ||
|
||
|
||
def downgrade(): | ||
op.drop_column("build", "build_key_version") |
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