Skip to content

Commit

Permalink
fix: create migration for removal of not null constraint on stats ver…
Browse files Browse the repository at this point in the history
…sion

Didn't realise I had removed this but it makes sense that I did given the changes that have been made to importing. Here's the corresponding migration.
  • Loading branch information
jrdh committed Sep 30, 2024
1 parent 03e1064 commit 752633c
Showing 1 changed file with 22 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
"""
Remove version not null constraint.
Revision ID: 5932a36b7cf3
Revises: d2ca5da0573f
Create Date: 2024-09-30 18:55:43.328542
"""
from alembic import op

# revision identifiers, used by Alembic.
revision = "5932a36b7cf3"
down_revision = "d2ca5da0573f"
branch_labels = None
depends_on = None


def upgrade():
op.alter_column("versioned_datastore_import_stats", "version", nullable=True)


def downgrade():
op.alter_column("versioned_datastore_import_stats", "version", nullable=False)

0 comments on commit 752633c

Please sign in to comment.