postgres-shift
A simple forwards only migration solution for postgres.js.
postgres-shift
shift()
postgres-shift
exports a single function which is used to start migrations. It
expects a postgres.js sql database object to run migrations with.
Example
import shift from 'https://deno.land/x/postgres_shift@v1.0.0/mod.ts'
import postgres from "https://deno.land/x/postgresjs@v3.2.2/mod.js";
import { join } from "https://deno.land/std@0.140.0/path/mod.ts";
const sql = postgres('postgres://...');
await shift({ sql, path: join(Deno.cwd(), './migrations') })