Skip to content

Commit

Permalink
Merge pull request #1 from GarretTomlin/updates
Browse files Browse the repository at this point in the history
update readme
  • Loading branch information
GarretTomlin committed Sep 17, 2023
2 parents 9a0110c + b8eff6d commit 8a58b44
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

A light weight hassle free migration cli for [Kysely](https://github.com/koskimas/kysely)

<p align="center">
<a href="https://www.npmjs.com/package/kysely-migrator-cli?activeTab=readme">
<img alt="npm" src="https://img.shields.io/npm/dw/kysely-migrator-cli">
</a>
</p>

## Table of Contents

- [kysely-migrator-cli](#kysely-migrator-cli)
Expand Down
1 change: 0 additions & 1 deletion src/commands/migrate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
2 changes: 1 addition & 1 deletion src/commands/rollback.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const migrateDown: GluegunCommand = {
}
});

await database.destroy();
await database.destroy;
} catch (error) {
print.error('Failed to roll back migrations:');
}
Expand Down

0 comments on commit 8a58b44

Please sign in to comment.