Changed initial_weight to be net weight, not gross weight
This commit is contained in:
@@ -23,12 +23,12 @@ def upgrade() -> None:
|
||||
"initial_weight",
|
||||
sa.Float(),
|
||||
nullable=True,
|
||||
comment="The initial total weight of the spool (gross weight).",
|
||||
comment="The initial weight of the filament on the spool (net weight).",
|
||||
),
|
||||
)
|
||||
op.add_column(
|
||||
"spool",
|
||||
sa.Column("empty_weight", sa.Float(), nullable=True, comment="The weight of the empty spool (tare weight)."),
|
||||
sa.Column("spool_weight", sa.Float(), nullable=True, comment="The weight of the empty spool (tare weight)."),
|
||||
)
|
||||
# ### end Alembic commands ###
|
||||
|
||||
@@ -36,6 +36,6 @@ def upgrade() -> None:
|
||||
def downgrade() -> None:
|
||||
"""Perform the downgrade."""
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.drop_column("spool", "empty_weight")
|
||||
op.drop_column("spool", "spool_weight")
|
||||
op.drop_column("spool", "initial_weight")
|
||||
# ### end Alembic commands ###
|
||||
|
||||
Reference in New Issue
Block a user