Files
sorsfonalak/crates/db/migrations/0033_checkout_notified.sql
T

5 lines
285 B
SQL
Raw Normal View History

-- When the operator's Telegram notice about a paid checkout went out (the
-- worker's `notify` task). Earlier purchases count as notified.
ALTER TABLE stripe_checkouts ADD COLUMN notified_at timestamptz;
UPDATE stripe_checkouts SET notified_at = now() WHERE completed_at IS NOT NULL;