15 lines
597 B
SQL
15 lines
597 B
SQL
-- Migration: Update Super Admin to 'lol' and force password reset
|
|
-- Description: Updates the superadmin identifier, email, name, and sets status to enforce password change.
|
|
|
|
-- Increase status column length to support 'force_change_password' (21 chars)
|
|
ALTER TABLE users ALTER COLUMN status TYPE VARCHAR(50);
|
|
|
|
UPDATE users
|
|
SET
|
|
identifier = 'lol',
|
|
email = 'lol@gohorsejobs.com',
|
|
full_name = 'Dr. Horse Expert',
|
|
name = 'Dr. Horse Expert',
|
|
status = 'force_change_password',
|
|
updated_at = CURRENT_TIMESTAMP
|
|
WHERE identifier = 'superadmin' OR email = 'admin@gohorsejobs.com';
|