- Add comprehensive migration script for database schema redesign - Update all extension profile models to reference user_role_profile_id - Create user_role_profiles as root table for all role profiles - Remove external portfolio links (github_url, portfolio_url, reel_url) - Rename applications→job_applications, requirements→leads - Drop deprecated tables (professionals, onboarding_submissions, etc.)
18 lines
711 B
SQL
18 lines
711 B
SQL
-- ============================================================================
|
|
-- DOWN MIGRATION: This migration is NOT REVERSIBLE
|
|
--
|
|
-- This migration performs a COMPLETE schema transformation and CANNOT be
|
|
-- rolled back. All old tables have been dropped, columns removed, and data
|
|
-- restructured.
|
|
--
|
|
-- DO NOT ATTEMPT TO RUN THIS FILE
|
|
--
|
|
-- To restore from backup:
|
|
-- 1. Restore PostgreSQL database from backup
|
|
-- 2. Re-run the original init-db.sql and all previous migrations
|
|
-- ============================================================================
|
|
|
|
-- THIS FILE INTENTIONALLY LEFT EMPTY
|
|
-- This migration is NOT REVERSIBLE
|
|
|
|
SELECT 'MIGRATION CANNOT BE REVERSED - Restore from backup' AS warning;
|