From b8eff6d68887f0e101085afeb4d4ec1a998bf8c4 Mon Sep 17 00:00:00 2001 From: garrettomlin Date: Sat, 16 Sep 2023 20:24:25 -0500 Subject: [PATCH] update readme --- README.md | 6 ++++++ src/commands/migrate.ts | 1 - src/commands/rollback.ts | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a4b10f4..036e4a8 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,12 @@ A light weight hassle free migration cli for [Kysely](https://github.com/koskimas/kysely) +

+ +npm + +

+ ## Table of Contents - [kysely-migrator-cli](#kysely-migrator-cli) diff --git a/src/commands/migrate.ts b/src/commands/migrate.ts index 28bcebd..cee6782 100644 --- a/src/commands/migrate.ts +++ b/src/commands/migrate.ts @@ -86,5 +86,4 @@ function extractErrorMessage(error: any): string { return 'An error occurred during migration, please make sure DATABASE_URL is define in your env'; } - export default migrate; diff --git a/src/commands/rollback.ts b/src/commands/rollback.ts index 6474ce3..99abda6 100644 --- a/src/commands/rollback.ts +++ b/src/commands/rollback.ts @@ -57,7 +57,7 @@ const migrateDown: GluegunCommand = { } }); - await database.destroy(); + await database.destroy; } catch (error) { print.error('Failed to roll back migrations:'); }