Skip to content

Commit

Permalink
chore: remove no-longer-needed workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
mmkal committed Apr 7, 2020
1 parent 3da680e commit 8036f2f
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions packages/migrator/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,9 @@ export const setupSlonikMigrator = ({
slonik,
migrationsPath,
migrationTableName = 'migration',
log: _log = console.log,
log = memoize(console.log, JSON.stringify),
mainModule,
}: SlonikMigratorOptions) => {
const log: typeof _log = memoize((...args: any[]) => {
if (args[0] === 'File: down does not match pattern: /\\.sql$/') {
// workaround until release of https://github.com/sequelize/umzug/pull/190
return
}
return _log(...args)
}, JSON.stringify)
const createMigrationTable = once(async () => {
void (await slonik.query(sql`
create table if not exists ${sql.identifier([migrationTableName])}(
Expand Down

0 comments on commit 8036f2f

Please sign in to comment.