AddUsedToMagicLinksMigration: delete all magic links after install
This commit is contained in:
parent
449922490f
commit
b9ac4d0f05
@ -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> {
|
||||
|
Loading…
Reference in New Issue
Block a user