mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-12-15 23:05:23 -05:00
Fix/incorrect quantity column (#1093)
* change database type * database migration for changing type on PostgreSQL * update revision * add exclusion directory * update recipe-scrapers
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
from sqlalchemy import Boolean, Column, ForeignKey, Integer, String, orm
|
||||
from sqlalchemy import Boolean, Column, Float, ForeignKey, Integer, String, orm
|
||||
|
||||
from mealie.db.models._model_base import BaseMixins, SqlAlchemyBase
|
||||
from mealie.db.models.labels import MultiPurposeLabel
|
||||
@@ -61,7 +61,7 @@ class RecipeIngredient(SqlAlchemyBase, BaseMixins):
|
||||
|
||||
food_id = Column(GUID, ForeignKey("ingredient_foods.id"))
|
||||
food = orm.relationship(IngredientFoodModel, uselist=False)
|
||||
quantity = Column(Integer)
|
||||
quantity = Column(Float)
|
||||
|
||||
reference_id = Column(GUID) # Reference Links
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@ class BackupV2(BaseService):
|
||||
# sourcery skip: merge-nested-ifs, reintroduce-else, remove-redundant-continue
|
||||
exclude = {"mealie.db", "mealie.log", ".secret"}
|
||||
exclude_ext = {".zip"}
|
||||
exclude_dirs = {"backups"}
|
||||
exclude_dirs = {"backups", ".temp"}
|
||||
|
||||
timestamp = datetime.datetime.now().strftime("%Y.%m.%d.%H.%M.%S")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user