Skip to content

Perf: migration builder#23

Merged
AxiosLeo merged 5 commits intomainfrom
perf/migration-builder
Feb 23, 2026
Merged

Perf: migration builder#23
AxiosLeo merged 5 commits intomainfrom
perf/migration-builder

Conversation

@AxiosLeo
Copy link
Owner

@AxiosLeo AxiosLeo commented Feb 23, 2026

Note

Medium Risk
This is an API-breaking change for migration scripts (method signatures changed) and alters how index drops are named/generated, which could cause runtime migration failures if callers aren’t updated.

Overview
Improves the migration API by standardizing parameter order (table-first) for createForeignKey, dropColumn, and dropForeignKey, and by updating the TypeScript declarations accordingly.

Adds a new dropIndex(table, columns) path that auto-generates the index name from column(s), while preserving explicit-name drops via a new dropIndexWithName(table, indexName) method; ManageSQLBuilder and unit tests are updated to cover both behaviors (including multi-column indexes).

Written by Cursor Bugbot for commit 062d559. This will update automatically on new commits. Configure here.

…ropColumn, dropIndex, and dropForeignKey to improve clarity and consistency
…s for dropIndex and createForeignKey methods
Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.

@AxiosLeo AxiosLeo merged commit fd90338 into main Feb 23, 2026
13 checks passed
@AxiosLeo AxiosLeo deleted the perf/migration-builder branch February 23, 2026 03:02
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