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.
This commit is contained in:
parent
1b9518a5d7
commit
6c1b02e613
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "bill-tracker",
|
||||
"version": "0.30.2",
|
||||
"version": "0.30.3",
|
||||
"description": "Monthly bill tracking system",
|
||||
"main": "server.js",
|
||||
"scripts": {
|
||||
|
|
|
|||
Loading…
Reference in New Issue