diff --git a/src/migration.ts b/src/migration.ts index 8e648b4d5..52ac72e01 100644 --- a/src/migration.ts +++ b/src/migration.ts @@ -184,7 +184,7 @@ export class Migration implements RunMigration { return `DELETE FROM "${schema}"."${migrationsTable}" WHERE name='${name}';` case this.up: this.logger.info(`### MIGRATION ${this.name} (UP) ###`) - return `INSERT INTO "${schema}"."${migrationsTable}" (name, run_on) VALUES ('${name}', NOW());` + return `INSERT INTO "${schema}"."${migrationsTable}" (name, run_on) VALUES ('${name}', CURRENT_TIMESTAMP);` default: throw new Error('Unknown direction') }