Fixed formatting

This commit is contained in:
Matt Gerega
2024-03-26 14:02:17 -04:00
parent 1d6830d769
commit 83fd3073ec
3 changed files with 51 additions and 28 deletions

View File

@@ -8,8 +8,8 @@ import sqlalchemy as sa
from alembic import op
# revision identifiers, used by Alembic.
revision = 'aafcd7fb0e84'
down_revision = 'b8881bdb716c'
revision = "aafcd7fb0e84"
down_revision = "b8881bdb716c"
branch_labels = None
depends_on = None
@@ -17,14 +17,25 @@ depends_on = None
def upgrade() -> None:
"""Perform the upgrade."""
# ### commands auto generated by Alembic - please adjust! ###
op.add_column('spool', sa.Column('initial_weight', sa.Float(), nullable=True, comment="The initial total weight of the spool (gross weight)."))
op.add_column('spool', sa.Column('empty_weight', sa.Float(), nullable=True, comment="The weight of the empty spool (tare weight)."))
op.add_column(
"spool",
sa.Column(
"initial_weight",
sa.Float(),
nullable=True,
comment="The initial total weight of the spool (gross weight).",
),
)
op.add_column(
"spool",
sa.Column("empty_weight", sa.Float(), nullable=True, comment="The weight of the empty spool (tare weight)."),
)
# ### end Alembic commands ###
def downgrade() -> None:
"""Perform the downgrade."""
# ### commands auto generated by Alembic - please adjust! ###
op.drop_column('spool', 'empty_weight')
op.drop_column('spool', 'initial_weight')
op.drop_column("spool", "empty_weight")
op.drop_column("spool", "initial_weight")
# ### end Alembic commands ###