Squash the pre-production migration history into fresh core, fedwiki, and stripe baselines and reduce the canonical source list to those three streams. Update sqlc configs, generated queries, raw SQL, tests, and docs while keeping provider tables schema-qualified. BREAKING: existing local database volumes must be wiped because goose version history restarts from the new baselines.
10 lines
325 B
SQL
10 lines
325 B
SQL
-- name: CreateSubscriptionChange :one
|
|
INSERT INTO core.subscription_changes (subscription_id, previous_status, new_status, stripe_event_id)
|
|
VALUES ($1, $2, $3, $4)
|
|
RETURNING *;
|
|
|
|
-- name: GetSubscriptionChangesBySubscriptionID :many
|
|
SELECT * FROM core.subscription_changes
|
|
WHERE subscription_id = $1
|
|
ORDER BY changed_at ASC;
|