prorm API Reference
    Preparing search index...

    Function createMigrationTemplate

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

    • Parameters

      • name: string

      Returns string

      Use buildMigrationTemplate instead. This used to emit an ESM-style (export const up = ...) template that was incompatible with Migrator.loadMigrationFile(), which only ever loaded migrations via CommonJS require(). It now delegates to the canonical CommonJS template so any existing callers keep working, but new code should call buildMigrationTemplate directly.