- Add schema_audit.md documenting current schema issues - Add target_schema.md with complete target schema design - Add old_to_new_mapping.md with table mapping - Add migration_plan.md with phased migration strategy - Add Phase 1 migrations (core infrastructure): - user_sessions table - users missing columns - departments updates - designations updates - employees updates - Add Phase 2 migrations (profile domain - CRITICAL): - create user_role_profiles root table - backfill user_role_profiles from existing profiles - add user_role_profile_id to extension tables - remove forbidden external portfolio links - Add user_role_profile Rust model - Update photographer model to use user_role_profile_id
3 lines
166 B
SQL
3 lines
166 B
SQL
-- Rollback: Drop user_role_profiles table
|
|
-- WARNING: This will fail if data exists and FK constraints are in place
|
|
DROP TABLE IF EXISTS user_role_profiles CASCADE;
|