DropLegacyLogsTable: fix sql syntax
This commit is contained in:
parent
0d94faf0a6
commit
cfb7bddca6
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "wms-core",
|
"name": "wms-core",
|
||||||
"version": "0.22.0",
|
"version": "0.22.1",
|
||||||
"description": "Node web application framework and toolbelt.",
|
"description": "Node web application framework and toolbelt.",
|
||||||
"repository": "https://gitlab.com/ArisuOngaku/wms-core",
|
"repository": "https://gitlab.com/ArisuOngaku/wms-core",
|
||||||
"author": "Alice Gaudon <alice@gaudon.pro>",
|
"author": "Alice Gaudon <alice@gaudon.pro>",
|
||||||
|
@ -3,7 +3,7 @@ import {Connection} from "mysql";
|
|||||||
|
|
||||||
export default class DropLegacyLogsTable extends Migration {
|
export default class DropLegacyLogsTable extends Migration {
|
||||||
public async install(connection: Connection): Promise<void> {
|
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> {
|
public async rollback(): Promise<void> {
|
||||||
|
Loading…
Reference in New Issue
Block a user