mirror of
https://github.com/warmbly/warmbly.git
synced 2026-10-25 08:03:32 +00:00
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
9 lines
414 B
SQL
9 lines
414 B
SQL
UPDATE subscriptions SET managed_at = NULL, managed_by = NULL, managed_reason = NULL,
|
|
managed_until = NULL, managed_plan_id = NULL, updated_at = now()
|
|
WHERE managed_plan_id = '00000000-0000-0000-0000-0000000000e1';
|
|
|
|
DELETE FROM plans p WHERE p.id = '00000000-0000-0000-0000-0000000000e1'
|
|
AND NOT EXISTS (SELECT 1 FROM subscriptions s WHERE s.plan_id = p.id);
|
|
|
|
ALTER TABLE organizations DROP COLUMN category;
|