mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-10-18 21:47:39 +02:00
Add missing migration for model-based queue columns
Add migration for target_model, required_filament_types, and waiting_reason columns in print_queue table. These columns were added to the model for the model-based queue assignment feature but the migration was missing. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.5
parent
1209e181a4
commit
7e88092d61
@@ -933,6 +933,20 @@ async def run_migrations(conn):
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
# Migration: Add model-based queue assignment columns to print_queue
|
||||
try:
|
||||
await conn.execute(text("ALTER TABLE print_queue ADD COLUMN target_model VARCHAR(50)"))
|
||||
except Exception:
|
||||
pass
|
||||
try:
|
||||
await conn.execute(text("ALTER TABLE print_queue ADD COLUMN required_filament_types TEXT"))
|
||||
except Exception:
|
||||
pass
|
||||
try:
|
||||
await conn.execute(text("ALTER TABLE print_queue ADD COLUMN waiting_reason TEXT"))
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
|
||||
async def seed_notification_templates():
|
||||
"""Seed default notification templates if they don't exist."""
|
||||
|
||||
Reference in New Issue
Block a user