From c3d816f2ccd1185cf11dca8ddf1c6e3c5b7a08b9 Mon Sep 17 00:00:00 2001 From: ab-pm <53600133+ab-pm@users.noreply.github.com> Date: Wed, 14 Aug 2019 09:56:28 +0200 Subject: [PATCH] update template files (#473) --- lib/migration-template.js | 2 ++ lib/migration-template.ts | 11 +++++------ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/lib/migration-template.js b/lib/migration-template.js index 644b04af..5dffd627 100644 --- a/lib/migration-template.js +++ b/lib/migration-template.js @@ -1,3 +1,5 @@ +/* eslint-disable camelcase */ + exports.shorthands = undefined; exports.up = (pgm) => { diff --git a/lib/migration-template.ts b/lib/migration-template.ts index 85a01368..9d2731e4 100644 --- a/lib/migration-template.ts +++ b/lib/migration-template.ts @@ -1,11 +1,10 @@ +/* eslint-disable @typescript-eslint/camelcase */ import { MigrationBuilder } from 'node-pg-migrate'; export const shorthands = undefined; -export const up = (pgm: MigrationBuilder) => { +export async function up(pgm: MigrationBuilder): Promise { +} -}; - -export const down = (pgm: MigrationBuilder) => { - -}; +export async function down(pgm: MigrationBuilder): Promise { +}