import { MigrationRunner } from "https://deno.land/x/cotton@v0.7.5/mod.ts";
Run migration classes
Methods
ensureMigrationDir(): Promise<void>
Ensures that the migration directory exists.
If the directory structure does not exist, it is created. Like mkdir -p.
Requires the --allow-read
and --allow-write
flag.
getAllMigrations(): Promise<{ migrations: MigrationInfo[]; lastBatch: number; }>
Get all available migrations