mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-15 06:40:17 +00:00
12 lines
522 B
MySQL
12 lines
522 B
MySQL
|
ALTER TABLE billing_customers DROP COLUMN last_stripe_event_id;
|
||
|
ALTER TABLE billing_subscriptions DROP COLUMN last_stripe_event_id;
|
||
|
|
||
|
CREATE TABLE IF NOT EXISTS processed_stripe_events (
|
||
|
stripe_event_id TEXT PRIMARY KEY,
|
||
|
stripe_event_type TEXT NOT NULL,
|
||
|
stripe_event_created_timestamp BIGINT NOT NULL,
|
||
|
processed_at TIMESTAMP WITHOUT TIME ZONE NOT NULL DEFAULT now()
|
||
|
);
|
||
|
|
||
|
CREATE INDEX "ix_processed_stripe_events_on_stripe_event_created_timestamp" ON processed_stripe_events (stripe_event_created_timestamp);
|