Files
krow_backend/migrations/000004_auth_sessions.down.sql
2026-08-24 13:06:29 +05:30

17 lines
617 B
SQL

-- Reverses 000004.
--
-- Drops exactly what the up migration created and nothing else: no CASCADE on
-- a schema, no DROP SCHEMA, no DROP DATABASE, and no touch to users beyond
-- removing the index 000004 added. users_org_email_key predates this migration
-- and is left alone.
--
-- Dropping `sessions` logs everyone out. That is the correct meaning of
-- rolling back the authentication foundation, and it destroys no application
-- data: every row in this table is a credential, not a record.
SET search_path = public;
DROP TABLE IF EXISTS public.sessions;
DROP INDEX IF EXISTS public.users_email_global_key;