Skip to content

Commit

Permalink
fix tests that shouldn't have passed to begin with
Browse files Browse the repository at this point in the history
  • Loading branch information
i-oden committed Sep 7, 2023
1 parent 39d84df commit 2028431
Show file tree
Hide file tree
Showing 2 changed files with 116 additions and 73 deletions.
40 changes: 14 additions & 26 deletions migrations/versions/f27c5988d640_set_sto2_to_nullable.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,41 +10,29 @@
from sqlalchemy.dialects import mysql

# revision identifiers, used by Alembic.
revision = 'f27c5988d640'
down_revision = '1e56b6212479'
revision = "f27c5988d640"
down_revision = "1e56b6212479"
branch_labels = None
depends_on = None


def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.alter_column('units', 'sto2_endpoint',
existing_type=mysql.VARCHAR(length=255),
nullable=True)
op.alter_column('units', 'sto2_name',
existing_type=mysql.VARCHAR(length=255),
nullable=True)
op.alter_column('units', 'sto2_access',
existing_type=mysql.VARCHAR(length=255),
nullable=True)
op.alter_column('units', 'sto2_secret',
existing_type=mysql.VARCHAR(length=255),
nullable=True)
op.alter_column(
"units", "sto2_endpoint", existing_type=mysql.VARCHAR(length=255), nullable=True
)
op.alter_column("units", "sto2_name", existing_type=mysql.VARCHAR(length=255), nullable=True)
op.alter_column("units", "sto2_access", existing_type=mysql.VARCHAR(length=255), nullable=True)
op.alter_column("units", "sto2_secret", existing_type=mysql.VARCHAR(length=255), nullable=True)
# ### end Alembic commands ###


def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.alter_column('units', 'sto2_secret',
existing_type=mysql.VARCHAR(length=255),
nullable=False)
op.alter_column('units', 'sto2_access',
existing_type=mysql.VARCHAR(length=255),
nullable=False)
op.alter_column('units', 'sto2_name',
existing_type=mysql.VARCHAR(length=255),
nullable=False)
op.alter_column('units', 'sto2_endpoint',
existing_type=mysql.VARCHAR(length=255),
nullable=False)
op.alter_column("units", "sto2_secret", existing_type=mysql.VARCHAR(length=255), nullable=False)
op.alter_column("units", "sto2_access", existing_type=mysql.VARCHAR(length=255), nullable=False)
op.alter_column("units", "sto2_name", existing_type=mysql.VARCHAR(length=255), nullable=False)
op.alter_column(
"units", "sto2_endpoint", existing_type=mysql.VARCHAR(length=255), nullable=False
)
# ### end Alembic commands ###
Loading

0 comments on commit 2028431

Please sign in to comment.