-
This commit is contained in:
21
user/migrations/002_add_security_features.down.sql
Normal file
21
user/migrations/002_add_security_features.down.sql
Normal file
@ -0,0 +1,21 @@
|
||||
-- Drop new tables
|
||||
DROP TABLE IF EXISTS two_factor_recovery_codes;
|
||||
DROP TABLE IF EXISTS login_attempts;
|
||||
DROP TABLE IF EXISTS email_verification_tokens;
|
||||
DROP TABLE IF EXISTS password_reset_tokens;
|
||||
|
||||
-- Remove new columns from users table
|
||||
ALTER TABLE users
|
||||
DROP COLUMN IF EXISTS password_hash,
|
||||
DROP COLUMN IF EXISTS password_salt,
|
||||
DROP COLUMN IF EXISTS email_verified,
|
||||
DROP COLUMN IF EXISTS email_verification_token,
|
||||
DROP COLUMN IF EXISTS email_verification_expires_at,
|
||||
DROP COLUMN IF EXISTS password_reset_token,
|
||||
DROP COLUMN IF EXISTS password_reset_expires_at,
|
||||
DROP COLUMN IF EXISTS failed_login_attempts,
|
||||
DROP COLUMN IF EXISTS locked_until,
|
||||
DROP COLUMN IF EXISTS two_factor_enabled,
|
||||
DROP COLUMN IF EXISTS two_factor_secret,
|
||||
DROP COLUMN IF EXISTS two_factor_backup_codes,
|
||||
DROP COLUMN IF EXISTS last_password_change;
|
||||
Reference in New Issue
Block a user