From 6c1b02e613480f01c24549c116f71c9e780222e2 Mon Sep 17 00:00:00 2001 From: null Date: Thu, 28 May 2026 23:33:45 -0500 Subject: [PATCH] fix: remove premature idx_payments_transaction_active from schema.sql The index referenced transaction_id which is only added by migration v0.59. On existing databases CREATE TABLE IF NOT EXISTS is a no-op, so the index creation crashed before migrations could run. v0.61 creates it correctly after the column exists. Fresh installs still get it via normal migration. --- db/schema.sql | 3 --- package.json | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/db/schema.sql b/db/schema.sql index 1fb6eda..f429c37 100644 --- a/db/schema.sql +++ b/db/schema.sql @@ -184,9 +184,6 @@ CREATE INDEX IF NOT EXISTS idx_notifications_lookup ON notifications(bill_id, us CREATE INDEX IF NOT EXISTS idx_bills_active ON bills(active); CREATE INDEX IF NOT EXISTS idx_payments_bill_id ON payments(bill_id); CREATE INDEX IF NOT EXISTS idx_payments_paid_date ON payments(paid_date); -CREATE UNIQUE INDEX IF NOT EXISTS idx_payments_transaction_active - ON payments(transaction_id) - WHERE transaction_id IS NOT NULL AND deleted_at IS NULL; CREATE INDEX IF NOT EXISTS idx_sessions_user_id ON sessions(user_id); CREATE INDEX IF NOT EXISTS idx_sessions_expires ON sessions(expires_at); CREATE INDEX IF NOT EXISTS idx_data_sources_user_type ON data_sources(user_id, type, status); diff --git a/package.json b/package.json index 89d0750..61abae6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bill-tracker", - "version": "0.30.2", + "version": "0.30.3", "description": "Monthly bill tracking system", "main": "server.js", "scripts": {