Skip to content

Conversation

@andrasbacsai
Copy link
Member

Changes

  • Added table existence checks to cloud_init_scripts migration to handle rename from 120000 to 120002
  • Added table existence checks to webhook_notification_settings migration to handle rename from 120000 to 120002
  • Both migrations were renamed on Nov 17, 2025, causing "duplicate table" errors for users upgrading from v444

Issues

Fixes: Users unable to upgrade from v4.0.0-beta.444 to v4.0.0-beta.445 due to "SQLSTATE[42P07]: Duplicate table" errors

andrasbacsai and others added 2 commits November 24, 2025 15:08
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 <[email protected]>
Similar to cloud_init_scripts, this migration was renamed from 120000 to
120002 between v444 and v445, causing "duplicate table" errors for users
upgrading who already have the webhook_notification_settings table created.

Added table existence check before creation for idempotency.

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

Co-Authored-By: Claude <[email protected]>
@andrasbacsai andrasbacsai changed the base branch from v4.x to next November 24, 2025 14:13
@andrasbacsai andrasbacsai merged commit c0ee56d into next Nov 24, 2025
3 checks passed
@andrasbacsai andrasbacsai deleted the fix-cloud-init-migration branch November 24, 2025 14:13
@andrasbacsai andrasbacsai mentioned this pull request Nov 25, 2025
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 25, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants