coolify/database
Andras Bacsai 2335bfad8f fix: handle existing cloud_init_scripts table in migration
The migration file was renamed from 120000 to 120002 between v444 and v445,
causing "duplicate table" errors for users upgrading from v444 who already
have the cloud_init_scripts table created.

This fix adds a table existence check before creation, making the migration
idempotent and safe for both fresh installations and upgrades.

Fixes the error: SQLSTATE[42P07]: Duplicate table: 7 ERROR: relation
"cloud_init_scripts" already exists

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-24 15:08:41 +01:00
..
factories refactor(dashboard): remove deployment loading logic and introduce DeploymentsIndicator component for better UI management 2025-09-30 11:43:30 +02:00
migrations fix: handle existing cloud_init_scripts table in migration 2025-11-24 15:08:41 +01:00
seeders feat: auto-create MinIO bucket and validate storage in development 2025-11-18 17:23:00 +01:00
.gitignore init of v4 🌮 2023-03-17 15:33:48 +01:00