diff --git a/migrate.py b/migrate.py index aedae21..0e56022 100644 --- a/migrate.py +++ b/migrate.py @@ -6,12 +6,12 @@ def upgrade_db(): try: with sqlite3.connect(DB_FILE) as conn: # Add stock column - conn.execute("ALTER TABLE products ADD COLUMN stock REAL DEFAULT 0") - print("Successfully added 'stock' column.") + # conn.execute("ALTER TABLE products ADD COLUMN stock REAL DEFAULT 0") + # print("Successfully added 'stock' column.") - # App.py also expects unit_type, adding it to prevent future headaches - conn.execute("ALTER TABLE products ADD COLUMN unit_type TEXT DEFAULT 'unit'") - print("Successfully added 'unit_type' column.") + # # App.py also expects unit_type, adding it to prevent future headaches + # conn.execute("ALTER TABLE products ADD COLUMN unit_type TEXT DEFAULT 'unit'") + # print("Successfully added 'unit_type' column.") conn.execute("ALTER TABLE dicom ADD COLUMN image_url TEXT;") print("Successfully added 'image_url' column.") diff --git a/templates/macros/modals.html b/templates/macros/modals.html index f024510..c13eb46 100644 --- a/templates/macros/modals.html +++ b/templates/macros/modals.html @@ -49,14 +49,39 @@