We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4467198 commit 6c84c23Copy full SHA for 6c84c23
src/sqlRunner.ts
@@ -112,7 +112,7 @@ export function runSequentially(
112
const promises = files.map(file => {
113
logDb(`Running ${file.name}`);
114
115
- return connection.instance.raw(file.sql);
+ return connection.query(file.sql);
116
});
117
118
return promise.runSequentially(promises);
@@ -138,7 +138,7 @@ export async function rollbackSequentially(
138
for (const sql of reverse(sqlFiles)) {
139
logDb(`Rolling back: ${sql.fqon}`);
140
141
- await connection.instance.raw(sql.dropStatement);
+ await connection.query(sql.dropStatement);
142
143
logDb('Executed: ', sql.dropStatement);
144
}
0 commit comments