prorm API Reference
    Preparing search index...

    Function buildMigrationTemplate

    Migration System - Main entry point for all migration-related exports Provides migration management capabilities for the TypeScript ORM

    • The single canonical migration file template used by every migration generator in this codebase (Migrator.createMigration, MigrationCli.create, cli.ts migration:create). Produces a CommonJS module.exports = { up, down } file, which is the format Migrator.loadMigrationFile() requires via require() (for .ts files this is transpiled on the fly via ts-node).

      Keeping exactly one template in one place means the loader and the generator can never drift out of sync again.

      Parameters

      • name: string

      Returns string