Skip to content

feat(migration): add methods for creating and adding columns, and enh…#18

Merged
AxiosLeo merged 1 commit into
mainfrom
feat/migration-create-column
Dec 7, 2025
Merged

feat(migration): add methods for creating and adding columns, and enh…#18
AxiosLeo merged 1 commit into
mainfrom
feat/migration-create-column

Conversation

@AxiosLeo

@AxiosLeo AxiosLeo commented Dec 7, 2025

Copy link
Copy Markdown
Owner

…ance raw SQL execution


Note

Adds addColumn and raw to the migration API, exports _initMigration, and introduces tests for these methods.

  • Migration API:
    • Adds addColumn(tableName, columnName, options) to build column-addition SQL.
    • Adds raw(sql, values) to enqueue arbitrary SQL.
    • Exports internal helper _initMigration.
  • Type Declarations (index.d.ts):
    • Declares addColumn with FieldType and CreateColumnOptions.
    • Declares raw(sql, values) on MigrationInterface.
    • Minor JSDoc adjustments for column creation.
  • Tests:
    • New tests/migration.tests.js covering addColumn (various options) and raw (with values, empty, mixed).

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

@AxiosLeo AxiosLeo merged commit 304aa3b into main Dec 7, 2025
7 checks passed
@AxiosLeo AxiosLeo deleted the feat/migration-create-column branch December 7, 2025 11:30
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