mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-26 03:47:40 -07:00
fix migration
This commit is contained in:
parent
cc02298f8e
commit
7522cdf445
1 changed files with 12 additions and 10 deletions
|
@ -1,15 +1,17 @@
|
|||
export class CleanCharts1680375641101 {
|
||||
constructor() {
|
||||
this.name = 'CleanCharts1680375641101';
|
||||
}
|
||||
async up(queryRunner) {
|
||||
await queryRunner.query(`delete from __chart__hashtag where ___local_users = 0 and ___remote_users = 0;`);
|
||||
constructor() {
|
||||
this.name = 'CleanCharts1680375641101';
|
||||
}
|
||||
async up(queryRunner) {
|
||||
await queryRunner.query(`delete from __chart__hashtag where ___local_users = 0 and ___remote_users = 0;`);
|
||||
await queryRunner.query(`delete from __chart_day__hashtag where ___local_users = 0 and ___remote_users = 0;`);
|
||||
await queryRunner.query(`COMMIT;`);
|
||||
await queryRunner.query(`vacuum __chart__hashtag;`);
|
||||
await queryRunner.query(`vacuum __chart_day__hashtag;`);
|
||||
}
|
||||
async down(queryRunner) {
|
||||
await queryRunner.query(`vacuum __chart__hashtag;`);
|
||||
await queryRunner.query(`vacuum __chart_day__hashtag;`);
|
||||
}
|
||||
await queryRunner.query(`COMMIT;`);
|
||||
}
|
||||
async down(queryRunner) {
|
||||
await queryRunner.query(`delete from __chart__hashtag where ___local_users = 0 and ___remote_users = 0;`);
|
||||
await queryRunner.query(`delete from __chart_day__hashtag where ___local_users = 0 and ___remote_users = 0;`);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue