import db
try:
    db.execute_commit('ALTER TABLE order_files ADD COLUMN print_time VARCHAR(50) NULL')
    db.execute_commit('ALTER TABLE order_files ADD COLUMN filament_g DECIMAL(10,2) NULL')
    print("Added metrics columns")
except Exception as e:
    print("Error:", e)
