mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-08-06 05:55:23 +02:00
feat: keep original text on ingredient parse (#1102)
* Keep Original Text on Ingredient Parse * Reorder migration and update test
This commit is contained in:
parent
5e44d1c238
commit
6f309d7a89
7 changed files with 33 additions and 2 deletions
|
@ -0,0 +1,24 @@
|
|||
"""Add original_text column to recipes_ingredients
|
||||
|
||||
Revision ID: f1a2dbee5fe9
|
||||
Revises: 263dd6707191
|
||||
Create Date: 2022-03-27 19:30:28.545846
|
||||
|
||||
"""
|
||||
import sqlalchemy as sa
|
||||
|
||||
from alembic import op
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = "f1a2dbee5fe9"
|
||||
down_revision = "263dd6707191"
|
||||
branch_labels = None
|
||||
depends_on = None
|
||||
|
||||
|
||||
def upgrade():
|
||||
op.add_column("recipes_ingredients", sa.Column("original_text", sa.String(), nullable=True))
|
||||
|
||||
|
||||
def downgrade():
|
||||
op.drop_column("recipes_ingredients", "original_text")
|
Loading…
Add table
Add a link
Reference in a new issue