Add IF EXISTS to DropNameFromUsers migration to not fail in new installs
This commit is contained in:
parent
8b805a484b
commit
d96de4874a
@ -5,7 +5,7 @@ import Migration from "../../db/Migration";
|
|||||||
*/
|
*/
|
||||||
export default class DropNameFromUsers extends Migration {
|
export default class DropNameFromUsers extends Migration {
|
||||||
public async install(): Promise<void> {
|
public async install(): Promise<void> {
|
||||||
await this.query('ALTER TABLE users DROP COLUMN name');
|
await this.query('ALTER TABLE users DROP COLUMN IF EXISTS name');
|
||||||
}
|
}
|
||||||
|
|
||||||
public async rollback(): Promise<void> {
|
public async rollback(): Promise<void> {
|
||||||
|
Loading…
Reference in New Issue
Block a user