Skip to content

Commit

Permalink
chore: dropping log statements to debug failing mssql tests
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Mar 1, 2022
1 parent a118455 commit 5aea733
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ export async function managedTransaction<T>(
* Returns the sql method for a DDL statement
*/
export function getDDLMethod(sql: string) {
console.log({ sql })
if (sql.startsWith('create')) {
return 'create'
}
Expand Down
1 change: 1 addition & 0 deletions test/migrations/schema.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,7 @@ test.group('Schema', (group) => {
const schema = new UsersSchema(trx, 'users.ts', false)

app.container.use('Adonis/Core/Event').on('db:query', (query) => {
console.log(query)
assert.property(query, 'sql')
assert.isTrue(query.inTransaction)
assert.equal(query.connection, 'primary')
Expand Down

0 comments on commit 5aea733

Please sign in to comment.