diff --git a/app/models/orm/migrations/versions/ab98e958dc3b_.py b/app/models/orm/migrations/versions/ef3392e8e054_.py similarity index 71% rename from app/models/orm/migrations/versions/ab98e958dc3b_.py rename to app/models/orm/migrations/versions/ef3392e8e054_.py index 5ceca4ec2..05360d4fe 100644 --- a/app/models/orm/migrations/versions/ab98e958dc3b_.py +++ b/app/models/orm/migrations/versions/ef3392e8e054_.py @@ -1,8 +1,8 @@ """update resolution metadata fields -Revision ID: ab98e958dc3b +Revision ID: ef3392e8e054 Revises: d767b6dd2c4c -Create Date: 2024-09-10 13:49:58.066058 +Create Date: 2024-09-10 14:19:43.424752 """ from alembic import op @@ -11,7 +11,7 @@ from sqlalchemy.dialects import postgresql # revision identifiers, used by Alembic. -revision = 'ab98e958dc3b' +revision = 'ef3392e8e054' down_revision = 'd767b6dd2c4c' branch_labels = None depends_on = None @@ -19,17 +19,17 @@ def upgrade(): # ### commands auto generated by Alembic - please adjust! ### - op.alter_column('dataset_metadata', 'resolution', nullable=False, new_column_name='spatial_resolution') + op.alter_column('dataset_metadata', 'resolution', nullable=True, new_column_name='spatial_resolution') op.add_column('dataset_metadata', sa.Column('resolution_description', sa.String(), nullable=True)) - op.alter_column('version_metadata', 'resolution', nullable=False, new_column_name='spatial_resolution') + op.alter_column('version_metadata', 'resolution', nullable=True, new_column_name='spatial_resolution') op.add_column('version_metadata', sa.Column('resolution_description', sa.String(), nullable=True)) # ### end Alembic commands ### def downgrade(): # ### commands auto generated by Alembic - please adjust! ### - op.alter_column('dataset_metadata', 'spatial_resolution', nullable=False, new_column_name='resolution') + op.alter_column('dataset_metadata', 'spatial_resolution', nullable=True, new_column_name='resolution') op.drop_column('version_metadata', 'resolution_description') - op.alter_column('version_metadata', 'spatial_resolution', nullable=False, new_column_name='resolution') + op.alter_column('version_metadata', 'spatial_resolution', nullable=True, new_column_name='resolution') op.drop_column('dataset_metadata', 'resolution_description') # ### end Alembic commands ###