mirror of
https://github.com/Dvorinka/Bookra.git
synced 2026-10-28 15:51:15 +00:00
- Finish Paddle-to-Stripe billing migration; drop paddle/stripe libs - Renumber migrations; add 00012 memberships+manage_token, 00013 location_type_capacity - Add tests: admin, auth, bookings customer service - Remove graphify-out artifacts and stale env files Authored By: TDvorak <[email protected]> Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
19 lines
443 B
SQL
19 lines
443 B
SQL
-- +goose Up
|
|
ALTER TABLE users
|
|
ADD COLUMN IF NOT EXISTS neon_subject text;
|
|
|
|
CREATE UNIQUE INDEX IF NOT EXISTS idx_users_neon_subject
|
|
ON users (neon_subject)
|
|
WHERE neon_subject IS NOT NULL;
|
|
|
|
UPDATE users
|
|
SET neon_subject = 'demo-owner',
|
|
updated_at = now()
|
|
WHERE email = '[email protected]'
|
|
AND neon_subject IS NULL;
|
|
|
|
-- +goose Down
|
|
DROP INDEX IF EXISTS idx_users_neon_subject;
|
|
ALTER TABLE users
|
|
DROP COLUMN IF EXISTS neon_subject;
|