Skip to content

Conversation

@AxiosLeo
Copy link
Owner

@AxiosLeo AxiosLeo commented Dec 7, 2025

…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.

2 participants