mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-12-04 15:47:55 -07:00
a3415159be
This reverts commit 36283b9a358886bfcf6f40c04b5bed1fe6088ff5.
25 lines
828 B
JavaScript
25 lines
828 B
JavaScript
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;`,
|
|
);
|
|
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;`);
|
|
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;`,
|
|
);
|
|
}
|
|
}
|