-
-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added backend support for multi-color filaments
- Loading branch information
Showing
6 changed files
with
244 additions
and
15 deletions.
There are no files selected for viewing
31 changes: 31 additions & 0 deletions
31
migrations/versions/2024_05_28_1846-415a8f855e14_multi_colors.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
"""multi_colors. | ||
Revision ID: 415a8f855e14 | ||
Revises: 395d560284b3 | ||
Create Date: 2024-05-28 18:46:12.935449 | ||
""" | ||
|
||
import sqlalchemy as sa | ||
from alembic import op | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = "415a8f855e14" | ||
down_revision = "395d560284b3" | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade() -> None: | ||
"""Perform the upgrade.""" | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.add_column("filament", sa.Column("multi_color_hexes", sa.String(length=128), nullable=True)) | ||
op.add_column("filament", sa.Column("multi_color_direction", sa.String(length=16), nullable=True)) | ||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade() -> None: | ||
"""Perform the downgrade.""" | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.drop_column("filament", "multi_color_direction") | ||
op.drop_column("filament", "multi_color_hexes") | ||
# ### end Alembic commands ### |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters