mirror of
https://github.com/screentinker/screentinker.git
synced 2026-05-15 07:32:23 -06:00
Fix startup crash on existing DB: defer group_id index to migration
The CREATE INDEX on schedules(group_id) in schema.sql ran before the phase4 migration added the group_id column, crashing on existing databases. Move the index creation to the migration which already handles it. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
52dd44a3e8
commit
2d3bb55db4
|
|
@ -217,7 +217,7 @@ CREATE TABLE IF NOT EXISTS schedules (
|
|||
);
|
||||
|
||||
CREATE INDEX IF NOT EXISTS idx_schedules_device ON schedules(device_id, enabled);
|
||||
CREATE INDEX IF NOT EXISTS idx_schedules_group ON schedules(group_id, enabled);
|
||||
-- Note: idx_schedules_group is created by the phase4 migration which rebuilds the table
|
||||
|
||||
-- ===================== VIDEO WALLS =====================
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue