- 009: status column was VARCHAR(20), causing 'force_change_password' (21 chars) to fail on INSERT — changed to VARCHAR(30) - 010: changed initial status from 'force_change_password' to 'pending' (fits any column size ≥7 chars, avoids future truncation) - 046: ALTER TABLE for existing deployments where 009 already applied with VARCHAR(20) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
5 lines
276 B
SQL
5 lines
276 B
SQL
-- Migration: Increase users.status column size
|
|
-- Description: Increase VARCHAR(20) to VARCHAR(30) to accommodate longer status values
|
|
-- like 'force_change_password' (21 chars) without truncation errors.
|
|
|
|
ALTER TABLE users ALTER COLUMN status TYPE VARCHAR(30);
|