DropLegacyLogsTable: fix sql syntax

This commit is contained in:
Alice Gaudon 2020-11-02 19:31:13 +01:00
parent 0d94faf0a6
commit cfb7bddca6
2 changed files with 2 additions and 2 deletions

View File

@ -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 <alice@gaudon.pro>",

View File

@ -3,7 +3,7 @@ import {Connection} from "mysql";
export default class DropLegacyLogsTable extends Migration {
public async install(connection: Connection): Promise<void> {
await this.query('DROP TABLE IF EXIST logs', connection);
await this.query('DROP TABLE IF EXISTS logs', connection);
}
public async rollback(): Promise<void> {