fix: Add missing auth columns to profiles table
All checks were successful
Deploy Development / deploy (push) Successful in 43s
All checks were successful
Deploy Development / deploy (push) Successful in 43s
This commit is contained in:
parent
9cd85266f6
commit
88677ea29f
13
backend/migrations/004_add_auth_columns.sql
Normal file
13
backend/migrations/004_add_auth_columns.sql
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
-- Migration 004: Add missing auth columns to profiles table
|
||||
-- Adds columns needed for email verification and trial system
|
||||
|
||||
ALTER TABLE profiles
|
||||
ADD COLUMN IF NOT EXISTS auth_type VARCHAR(50) DEFAULT 'email',
|
||||
ADD COLUMN IF NOT EXISTS verification_expires TIMESTAMP,
|
||||
ADD COLUMN IF NOT EXISTS trial_ends_at TIMESTAMP;
|
||||
|
||||
-- Update existing profiles to have default values
|
||||
UPDATE profiles
|
||||
SET auth_type = 'email',
|
||||
email_verified = true -- existing profiles are considered verified
|
||||
WHERE auth_type IS NULL;
|
||||
Loading…
Reference in New Issue
Block a user