- Add SQL to create consulting_stage, consulting_state, collected_info,
recommended_programs, conversion_path, device_info columns
- Runs after migration step in full-reset to ensure V2 features work
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add do_full_reset function that deletes all data and rebuilds system
- Preserves SSL certificates (stored in /etc/letsencrypt/)
- Requires explicit YES confirmation before proceeding
- Includes: stop services, clean Docker, rebuild, migrate, restart
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Change PostgreSQL image from postgres:15-alpine to pgvector/pgvector:pg15
- Add init_database() function to auto-detect and initialize database
- Add 'db init' command for manual database initialization
- Database init runs automatically on first 'start all' deployment
- Includes admin account creation and pgvector extension verification
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Kong is configured to use DB-less mode with declarative config
(kong/kong.yml), so remove the obsolete kong-database and
migrations steps from the deploy script.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>