Skip to content

Commit

Permalink
Release v0.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
exAspArk committed Jan 5, 2024
1 parent 6726451 commit 8d611a9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## v0.2.1

- Fix migration generation to work with tables names containing double quotes.

## v0.2.0

- Updated license from MIT to LGPL-3.0 `#LoveOpenSource`
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@bemi-db/prisma",
"version": "0.2.0",
"version": "0.2.1",
"description": "Automatic data change tracking for Prisma",
"main": "dist/index.js",
"module": "./dist/index.mjs",
Expand Down
4 changes: 2 additions & 2 deletions src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ BEGIN
SELECT tablename FROM pg_tables WHERE schemaname = 'public'
LOOP
EXECUTE format(
'CREATE OR REPLACE TRIGGER _bemi_row_trigger_%I
'CREATE OR REPLACE TRIGGER _bemi_row_trigger_%s
BEFORE INSERT OR UPDATE OR DELETE ON %I FOR EACH ROW
EXECUTE FUNCTION _bemi_row_trigger_func()',
current_tablename, current_tablename
Expand Down Expand Up @@ -72,7 +72,7 @@ const generateMigrationFile = async () => {

const program = new Command();

program.name("bemi").description("CLI to Bemi utilities").version("0.1.0");
program.name("bemi").description("CLI to Bemi utilities").version("0.2.1");

program.
command("migration:create").
Expand Down

0 comments on commit 8d611a9

Please sign in to comment.