Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
-- DB-05 (proposed, destructive): drop indexes that duplicate another index
-- on the same table and column.
-- DB-05: drop indexes that duplicate another index on the same table and
-- column. Approved by Adam 23 Oct 2026; moved from supabase/proposed/.
--
-- subscriptions idx_subscriptions_stripe_customer duplicates
-- idx_subscriptions_stripe_customer_id (both plain
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
-- DB-05 (proposed): give private.promo_redeem_failures a primary key.
-- DB-05: give private.promo_redeem_failures a primary key (approved by Adam
-- 23 Oct 2026; moved from supabase/proposed/).
--
-- It is the one table without a primary key. Its natural columns
-- (user_id, failed_at) can repeat when two failures share a timestamp, so a
Expand All @@ -10,5 +11,7 @@
-- IF NOT EXISTS skips the whole statement, primary key included; check with
-- `\d private.promo_redeem_failures` first.

ALTER TABLE private.promo_redeem_failures
ADD COLUMN IF NOT EXISTS id bigint GENERATED ALWAYS AS IDENTITY PRIMARY KEY;
-- The rewrite and lock are accepted: the table holds a handful of rows
-- (1 on production on 23 Oct 2026) and only promo redemption writes to it.
-- squawk-ignore adding-field-with-default,adding-serial-primary-key-field
ALTER TABLE private.promo_redeem_failures ADD COLUMN IF NOT EXISTS id bigint GENERATED ALWAYS AS IDENTITY PRIMARY KEY;
15 changes: 0 additions & 15 deletions supabase/proposed/20261023060100_drop_staging_auto_admin.sql

This file was deleted.

Loading