Skip to content

Commit

Permalink
fix(sql): mysql migrator (#2867)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamiehodge authored May 28, 2024
1 parent 2b90350 commit 3e86ced
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/gold-beers-approve.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@effect/sql": patch
---

fix sql mysql migrator
2 changes: 1 addition & 1 deletion packages/sql/src/Migrator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ export const make = <RD = never>({
const run = Effect.gen(function*(_) {
yield* sql.onDialect({
mssql: () => Effect.void,
mysql: () => sql`LOCK TABLE ${sql(table)} IN ACCESS EXCLUSIVE MODE`,
mysql: () => Effect.void,
pg: () => sql`LOCK TABLE ${sql(table)} IN ACCESS EXCLUSIVE MODE`,
sqlite: () => Effect.void
})
Expand Down

0 comments on commit 3e86ced

Please sign in to comment.