From cfb7bddca692ada188ddeac47226a932c252ee6c Mon Sep 17 00:00:00 2001 From: Alice Gaudon Date: Mon, 2 Nov 2020 19:31:13 +0100 Subject: [PATCH] DropLegacyLogsTable: fix sql syntax --- package.json | 2 +- src/migrations/DropLegacyLogsTable.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 1097b6c..d38baf7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "wms-core", - "version": "0.22.0", + "version": "0.22.1", "description": "Node web application framework and toolbelt.", "repository": "https://gitlab.com/ArisuOngaku/wms-core", "author": "Alice Gaudon ", diff --git a/src/migrations/DropLegacyLogsTable.ts b/src/migrations/DropLegacyLogsTable.ts index c18a713..f19493f 100644 --- a/src/migrations/DropLegacyLogsTable.ts +++ b/src/migrations/DropLegacyLogsTable.ts @@ -3,7 +3,7 @@ import {Connection} from "mysql"; export default class DropLegacyLogsTable extends Migration { public async install(connection: Connection): Promise { - await this.query('DROP TABLE IF EXIST logs', connection); + await this.query('DROP TABLE IF EXISTS logs', connection); } public async rollback(): Promise {