Dateien nach "backend/src" hochladen

This commit is contained in:
2026-05-26 00:15:43 +02:00
parent eb7a03328e
commit 4554644f87

View File

@@ -94,4 +94,8 @@ const cols = db.prepare("PRAGMA table_info(calculations)").all().map(r => r.name
if (!cols.includes('image')) db.exec("ALTER TABLE calculations ADD COLUMN image TEXT"); if (!cols.includes('image')) db.exec("ALTER TABLE calculations ADD COLUMN image TEXT");
if (!cols.includes('bemerkung')) db.exec("ALTER TABLE calculations ADD COLUMN bemerkung TEXT NOT NULL DEFAULT ''"); if (!cols.includes('bemerkung')) db.exec("ALTER TABLE calculations ADD COLUMN bemerkung TEXT NOT NULL DEFAULT ''");
// Migrationen order_items
const oiCols = db.prepare("PRAGMA table_info(order_items)").all().map(r => r.name);
if (!oiCols.includes('custom_price')) db.exec("ALTER TABLE order_items ADD COLUMN custom_price REAL");
if (!oiCols.includes('status')) db.exec("ALTER TABLE order_items ADD COLUMN status TEXT NOT NULL DEFAULT 'warteliste'");
module.exports = db; module.exports = db;