21 lines
815 B
SQL
21 lines
815 B
SQL
-- 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; |