first commit
This commit is contained in:
16
migrations/000004_auth_sessions.down.sql
Normal file
16
migrations/000004_auth_sessions.down.sql
Normal file
@@ -0,0 +1,16 @@
|
||||
-- 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;
|
||||
Reference in New Issue
Block a user