mirror of
https://git.coastit.co.za/caitlin/CRM_ENVR.git
synced 2026-07-10 19:17:16 +02:00
20 lines
780 B
PL/PgSQL
20 lines
780 B
PL/PgSQL
-- ============================================================================
|
|
-- CRM Database — Full Migration Runner
|
|
-- ============================================================================
|
|
-- Usage: psql -U postgres -d crm -f run_all.sql
|
|
-- ============================================================================
|
|
|
|
\echo '=== Running 001_schema.sql (Tables + Constraints + Functions + Views) ==='
|
|
\i 001_schema.sql
|
|
|
|
\echo '=== Running 002_seed.sql (RBAC + Test Accounts + Reference Data) ==='
|
|
\i 002_seed.sql
|
|
|
|
\echo '=== Migration Complete ==='
|
|
\echo ''
|
|
\echo 'Test accounts created:'
|
|
\echo ' superadmin_demo / SuperAdmin@2026'
|
|
\echo ' admin_demo / AdminAccess@2026'
|
|
\echo ' sales_demo / SalesAccess@2026'
|
|
\echo ' dev_demo / DevTesting@2026'
|