Skip to content

Commit

Permalink
feat: Add database revision
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathan-d-zhang committed Aug 11, 2024
1 parent e93f7d8 commit dc1e098
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions alembic/versions/a62a93704798_add_distributions.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
"""add distributions
Revision ID: a62a93704798
Revises: 587c186d91ee
Create Date: 2024-08-11 08:12:42.354151
"""

from alembic import op

# revision identifiers, used by Alembic.
revision = "a62a93704798"
down_revision = "587c186d91ee"
branch_labels = None
depends_on = None


def upgrade() -> None:
op.alter_column("scans", "files", new_column_name="distributions")


def downgrade() -> None:
op.alter_column("scans", "distributions", new_column_name="files")

0 comments on commit dc1e098

Please sign in to comment.