This commit adds scripts to handle production database migrations that
failed due to schema inconsistencies. The force upgrade script preserves
critical configuration data while recreating the database structure.
Features:
- Exports and preserves SystemSettings (wallet addresses, API keys)
- Preserves Users (admin accounts with passwords)
- Preserves BotRegistrations (Telegram bot configuration)
- Creates timestamped backups before any changes
- Automatic rollback on failure
- Manual SQL migration script as fallback option
Usage:
bash force-upgrade-production-db.sh
This is safe to use when product catalog data is not critical and
configuration/wallet data must be preserved.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>