Skip to content

Comments

fix: Use ALTER TABLE IF EXISTS for asset_snapshots#2788

Open
ozgen wants to merge 1 commit intomainfrom
fix/db-migration-guards-if-exists
Open

fix: Use ALTER TABLE IF EXISTS for asset_snapshots#2788
ozgen wants to merge 1 commit intomainfrom
fix/db-migration-guards-if-exists

Conversation

@ozgen
Copy link
Member

@ozgen ozgen commented Feb 22, 2026

What

Fix the SQL syntax in the migration by using the correct ALTER TABLE IF EXISTS order.

Why

The previous order was invalid in Postgres and caused the migration to fail.

References

#2787

@ozgen ozgen requested review from a team as code owners February 22, 2026 15:00
@greenbonebot greenbonebot enabled auto-merge (rebase) February 22, 2026 15:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant