ente/server/migrations/49_add_unique_idx_txn_id.up.sql
2024-03-01 13:37:01 +05:30

3 lines
186 B
SQL

CREATE UNIQUE INDEX IF NOT EXISTS sub_original_txn_id_index
ON subscriptions (original_transaction_id)
WHERE original_transaction_id is not null and original_transaction_id != 'none';