diff --git a/src/auth/migrations/DropNameFromUsers.ts b/src/auth/migrations/DropNameFromUsers.ts index 1c7352a..bc3e0c5 100644 --- a/src/auth/migrations/DropNameFromUsers.ts +++ b/src/auth/migrations/DropNameFromUsers.ts @@ -5,7 +5,7 @@ import Migration from "../../db/Migration"; */ export default class DropNameFromUsers extends Migration { public async install(): Promise { - await this.query('ALTER TABLE users DROP COLUMN name'); + await this.query('ALTER TABLE users DROP COLUMN IF EXISTS name'); } public async rollback(): Promise {