diff --git a/ckanext/versioned_datastore/migration/versioned_datastore/versions/5932a36b7cf3_remove_version_not_null_constraint.py b/ckanext/versioned_datastore/migration/versioned_datastore/versions/5932a36b7cf3_remove_version_not_null_constraint.py new file mode 100644 index 00000000..439f286e --- /dev/null +++ b/ckanext/versioned_datastore/migration/versioned_datastore/versions/5932a36b7cf3_remove_version_not_null_constraint.py @@ -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)