nxtgauge-backend-rust/crates/db/migrations/20260415000000_complete_migration.down.sql
Tracewebstudio Dev 2e283e5d67 feat(db): add complete migration and update extension models to use user_role_profile_id
- 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.)
2026-04-12 23:55:08 +02:00

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;