Skip to content

Commit 005b66b

Browse files
committed
Added tx commit
1 parent 24ae703 commit 005b66b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/migrations/postgres/PostgresAutomaticMigrations.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,11 +216,10 @@ export default class PostgresAutomaticMigrations extends PostgresMigrations {
216216

217217
await using tx = await driver.createTransaction();
218218
if (prepare && !constraint.doNotClearExisting ) {
219-
console.log(prepare);
220219
await driver.executeQuery(prepare);
221-
console.log(text);
222220
}
223221
await driver.executeQuery(text);
222+
await tx.commit();
224223
} catch (error) {
225224
// we will simply ignore this
226225
console.warn(`Failed adding constraint ${constraint.name}`);

0 commit comments

Comments
 (0)