UNPKG

@magic-mustard/sqlsync

Version:

SQLSync simplifies database schema evolution by allowing a declarative approach to table management

22 lines (21 loc) 909 B
"use strict"; // cli/migrations.ts Object.defineProperty(exports, "__esModule", { value: true }); exports.MigrationsCommand = void 0; class MigrationsCommand { register(program) { program .command('migrations') .description('Manage migrations') //.option('-l, --list', 'List all migrations') .option('-c, --create <name>', 'Create a new migration with the given name') //.option('-u, --up [count]', 'Apply the next N migrations (default 1)') //.option('-d, --down [count]', 'Revert the last N migrations (default 1)') //.option('-t, --to <name>', 'Migrate up or down to the named migration') .action((options) => { console.log('Managing migrations...'); // Logic for migrations will be handled by orchestrator }); } } exports.MigrationsCommand = MigrationsCommand;