AddUsedToMagicLinksMigration: delete all magic links after install

This commit is contained in:
Alice Gaudon 2021-01-25 14:07:20 +01:00
parent 449922490f
commit b9ac4d0f05

View File

@ -4,6 +4,7 @@ export default class AddUsedToMagicLinksMigration extends Migration {
public async install(): Promise<void> {
await this.query(`ALTER TABLE magic_links
ADD COLUMN used BOOLEAN NOT NULL`);
await this.query(`DELETE FROM magic_links`);
}
public async rollback(): Promise<void> {