`DELETE FROM "__chart__active_users" a USING "__chart__active_users" b WHERE a.id < b.id AND ((a.group IS NULL AND b.group IS NULL) OR a.group = b.group) AND a.date = b.date;`,
);
awaitqueryRunner.query(
`DELETE FROM "__chart__drive" a USING "__chart__drive" b WHERE a.id < b.id AND ((a.group IS NULL AND b.group IS NULL) OR a.group = b.group) AND a.date = b.date;`,
);
awaitqueryRunner.query(
`DELETE FROM "__chart__federation" a USING "__chart__federation" b WHERE a.id < b.id AND ((a.group IS NULL AND b.group IS NULL) OR a.group = b.group) AND a.date = b.date;`,
);
awaitqueryRunner.query(
`DELETE FROM "__chart__hashtag" a USING "__chart__hashtag" b WHERE a.id < b.id AND ((a.group IS NULL AND b.group IS NULL) OR a.group = b.group) AND a.date = b.date;`,
);
awaitqueryRunner.query(
`DELETE FROM "__chart__instance" a USING "__chart__instance" b WHERE a.id < b.id AND ((a.group IS NULL AND b.group IS NULL) OR a.group = b.group) AND a.date = b.date;`,
);
awaitqueryRunner.query(
`DELETE FROM "__chart__network" a USING "__chart__network" b WHERE a.id < b.id AND ((a.group IS NULL AND b.group IS NULL) OR a.group = b.group) AND a.date = b.date;`,
);
awaitqueryRunner.query(
`DELETE FROM "__chart__notes" a USING "__chart__notes" b WHERE a.id < b.id AND ((a.group IS NULL AND b.group IS NULL) OR a.group = b.group) AND a.date = b.date;`,
);
awaitqueryRunner.query(
`DELETE FROM "__chart__per_user_drive" a USING "__chart__per_user_drive" b WHERE a.id < b.id AND ((a.group IS NULL AND b.group IS NULL) OR a.group = b.group) AND a.date = b.date;`,
);
awaitqueryRunner.query(
`DELETE FROM "__chart__per_user_following" a USING "__chart__per_user_following" b WHERE a.id < b.id AND ((a.group IS NULL AND b.group IS NULL) OR a.group = b.group) AND a.date = b.date;`,
);
awaitqueryRunner.query(
`DELETE FROM "__chart__per_user_notes" a USING "__chart__per_user_notes" b WHERE a.id < b.id AND ((a.group IS NULL AND b.group IS NULL) OR a.group = b.group) AND a.date = b.date;`,
);
awaitqueryRunner.query(
`DELETE FROM "__chart__per_user_reaction" a USING "__chart__per_user_reaction" b WHERE a.id < b.id AND ((a.group IS NULL AND b.group IS NULL) OR a.group = b.group) AND a.date = b.date;`,
);
awaitqueryRunner.query(
`DELETE FROM "__chart__test_grouped" a USING "__chart__test_grouped" b WHERE a.id < b.id AND ((a.group IS NULL AND b.group IS NULL) OR a.group = b.group) AND a.date = b.date;`,
);
awaitqueryRunner.query(
`DELETE FROM "__chart__test_unique" a USING "__chart__test_unique" b WHERE a.id < b.id AND ((a.group IS NULL AND b.group IS NULL) OR a.group = b.group) AND a.date = b.date;`,
);
awaitqueryRunner.query(
`DELETE FROM "__chart__users" a USING "__chart__users" b WHERE a.id < b.id AND ((a.group IS NULL AND b.group IS NULL) OR a.group = b.group) AND a.date = b.date;`,
);
awaitqueryRunner.query(`DROP INDEX "IDX_0ad37b7ef50f4ddc84363d7ccc"`);
awaitqueryRunner.query(`DROP INDEX "IDX_00ed5f86db1f7efafb1978bf21"`);
awaitqueryRunner.query(`DROP INDEX "IDX_9a3ed15a30ab7e3a37702e6e08"`);
awaitqueryRunner.query(`DROP INDEX "IDX_13565815f618a1ff53886c5b28"`);
awaitqueryRunner.query(`DROP INDEX "IDX_7a170f67425e62a8fabb76c872"`);
awaitqueryRunner.query(`DROP INDEX "IDX_3313d7288855ec105b5bbf6c21"`);
awaitqueryRunner.query(`DROP INDEX "IDX_36cb699c49580d4e6c2e6159f9"`);
awaitqueryRunner.query(`DROP INDEX "IDX_76e87c7bfc5d925fcbba405d84"`);
awaitqueryRunner.query(`DROP INDEX "IDX_dd907becf76104e4b656659e6b"`);
awaitqueryRunner.query(`DROP INDEX "IDX_07747a1038c05f532a718fe1de"`);
awaitqueryRunner.query(`DROP INDEX "IDX_99a7d2faaef84a6f728d714ad6"`);
awaitqueryRunner.query(`DROP INDEX "IDX_25a97c02003338124b2b75fdbc"`);
awaitqueryRunner.query(`DROP INDEX "IDX_6b8f34a1a64b06014b6fb66824"`);
awaitqueryRunner.query(`DROP INDEX "IDX_da8a46ba84ca1d8bb5a29bfb63"`);
awaitqueryRunner.query(`DROP INDEX "IDX_39ee857ab2f23493037c6b6631"`);
awaitqueryRunner.query(`DROP INDEX "IDX_a1efd3e0048a5f2793a47360dc"`);
awaitqueryRunner.query(`DROP INDEX "IDX_7b5da130992ec9df96712d4290"`);
awaitqueryRunner.query(`DROP INDEX "IDX_0a905b992fecd2b5c3fb98759e"`);
awaitqueryRunner.query(`DROP INDEX "IDX_42eb716a37d381cdf566192b2b"`);
awaitqueryRunner.query(`DROP INDEX "IDX_7036f2957151588b813185c794"`);
awaitqueryRunner.query(`DROP INDEX "IDX_f09d543e3acb16c5976bdb31fa"`);
awaitqueryRunner.query(`DROP INDEX "IDX_5f86db6492274e07c1a3cdf286"`);
awaitqueryRunner.query(`DROP INDEX "IDX_e496ca8096d28f6b9b509264dc"`);
awaitqueryRunner.query(`DROP INDEX "IDX_30bf67687f483ace115c5ca642"`);
awaitqueryRunner.query(`DROP INDEX "IDX_7af07790712aa3438ff6773f3b"`);
awaitqueryRunner.query(`DROP INDEX "IDX_4b3593098b6edc9c5afe36b18b"`);
awaitqueryRunner.query(`DROP INDEX "IDX_b77d4dd9562c3a899d9a286fcd"`);
awaitqueryRunner.query(`DROP INDEX "IDX_84234bd1abb873f07329681c83"`);
awaitqueryRunner.query(`DROP INDEX "IDX_55bf20f366979f2436de99206b"`);
awaitqueryRunner.query(`DROP INDEX "IDX_5048e9daccbbbc6d567bb142d3"`);
awaitqueryRunner.query(`DROP INDEX "IDX_f7bf4c62059764c2c2bb40fdab"`);
awaitqueryRunner.query(`DROP INDEX "IDX_8cf3156fd7a6b15c43459c6e3b"`);
awaitqueryRunner.query(`DROP INDEX "IDX_229a41ad465f9205f1f5703291"`);
awaitqueryRunner.query(`DROP INDEX "IDX_0c641990ecf47d2545df4edb75"`);
awaitqueryRunner.query(`DROP INDEX "IDX_234dff3c0b56a6150b95431ab9"`);
awaitqueryRunner.query(`DROP INDEX "IDX_b14489029e4b3aaf4bba5fb524"`);
awaitqueryRunner.query(`DROP INDEX "IDX_437bab3c6061d90f6bb65fd2cc"`);
awaitqueryRunner.query(`DROP INDEX "IDX_bbfa573a8181018851ed0b6357"`);
awaitqueryRunner.query(`DROP INDEX "IDX_a0cd75442dd10d0643a17c4a49"`);
awaitqueryRunner.query(`DROP INDEX "IDX_b070a906db04b44c67c6c2144d"`);
awaitqueryRunner.query(`DROP INDEX "IDX_d41cce6aee1a50bfc062038f9b"`);
awaitqueryRunner.query(`DROP INDEX "IDX_a319e5dbf47e8a17497623beae"`);
awaitqueryRunner.query(`DROP INDEX "IDX_845254b3eaf708ae8a6cac3026"`);
awaitqueryRunner.query(`DROP INDEX "IDX_ed9b95919c672a13008e9487ee"`);
awaitqueryRunner.query(`DROP INDEX "IDX_337e9599f278bd7537fe30876f"`);
awaitqueryRunner.query(
`CREATE UNIQUE INDEX "IDX_9a3ed15a30ab7e3a37702e6e08" ON "__chart__active_users" ("date", "group") `,
);
awaitqueryRunner.query(
`CREATE UNIQUE INDEX "IDX_60c5c6e7e538c09aa274ecd1cf" ON "__chart__active_users" ("date") WHERE "group" IS NULL`,
);
awaitqueryRunner.query(
`CREATE UNIQUE INDEX "IDX_3313d7288855ec105b5bbf6c21" ON "__chart__drive" ("date", "group") `,
);
awaitqueryRunner.query(
`CREATE UNIQUE INDEX "IDX_ceab80a6729f8e2e6f5b8a1a3d" ON "__chart__drive" ("date") WHERE "group" IS NULL`,
);
awaitqueryRunner.query(
`CREATE UNIQUE INDEX "IDX_dd907becf76104e4b656659e6b" ON "__chart__federation" ("date", "group") `,
);
awaitqueryRunner.query(
`CREATE UNIQUE INDEX "IDX_eddfed8fb40305a04c6f941050" ON "__chart__federation" ("date") WHERE "group" IS NULL`,
);
awaitqueryRunner.query(
`CREATE UNIQUE INDEX "IDX_25a97c02003338124b2b75fdbc" ON "__chart__hashtag" ("date", "group") `,
);
awaitqueryRunner.query(
`CREATE UNIQUE INDEX "IDX_53a3604b939e2b479eb2cfaac8" ON "__chart__hashtag" ("date") WHERE "group" IS NULL`,
);
awaitqueryRunner.query(
`CREATE UNIQUE INDEX "IDX_39ee857ab2f23493037c6b6631" ON "__chart__instance" ("date", "group") `,
);
awaitqueryRunner.query(
`CREATE UNIQUE INDEX "IDX_8111b817b9818c04d7eb8475b1" ON "__chart__instance" ("date") WHERE "group" IS NULL`,
);
awaitqueryRunner.query(
`CREATE UNIQUE INDEX "IDX_0a905b992fecd2b5c3fb98759e" ON "__chart__network" ("date", "group") `,
);
awaitqueryRunner.query(
`CREATE UNIQUE INDEX "IDX_2082327b2699ce924fa654afc5" ON "__chart__network" ("date") WHERE "group" IS NULL`,
);
awaitqueryRunner.query(
`CREATE UNIQUE INDEX "IDX_f09d543e3acb16c5976bdb31fa" ON "__chart__notes" ("date", "group") `,
);
awaitqueryRunner.query(
`CREATE UNIQUE INDEX "IDX_e60c358aaced5aab8900a4af31" ON "__chart__notes" ("date") WHERE "group" IS NULL`,
);
awaitqueryRunner.query(
`CREATE UNIQUE INDEX "IDX_30bf67687f483ace115c5ca642" ON "__chart__per_user_drive" ("date", "group") `,
);
awaitqueryRunner.query(
`CREATE UNIQUE INDEX "IDX_a9a806d466b314f253a1a611c4" ON "__chart__per_user_drive" ("date") WHERE "group" IS NULL`,
);
awaitqueryRunner.query(
`CREATE UNIQUE INDEX "IDX_b77d4dd9562c3a899d9a286fcd" ON "__chart__per_user_following" ("date", "group") `,
);
awaitqueryRunner.query(
`CREATE UNIQUE INDEX "IDX_dabbb38a51ab86ee3cab291326" ON "__chart__per_user_following" ("date") WHERE "group" IS NULL`,
);
awaitqueryRunner.query(
`CREATE UNIQUE INDEX "IDX_5048e9daccbbbc6d567bb142d3" ON "__chart__per_user_notes" ("date", "group") `,
);
awaitqueryRunner.query(
`CREATE UNIQUE INDEX "IDX_583a157ed0cf0ed1b5ec2a833f" ON "__chart__per_user_notes" ("date") WHERE "group" IS NULL`,
);
awaitqueryRunner.query(
`CREATE UNIQUE INDEX "IDX_229a41ad465f9205f1f5703291" ON "__chart__per_user_reaction" ("date", "group") `,
);
awaitqueryRunner.query(
`CREATE UNIQUE INDEX "IDX_3b7697a96f522d0478972e6d6f" ON "__chart__per_user_reaction" ("date") WHERE "group" IS NULL`,
);
awaitqueryRunner.query(
`CREATE UNIQUE INDEX "IDX_b14489029e4b3aaf4bba5fb524" ON "__chart__test_grouped" ("date", "group") `,
);
awaitqueryRunner.query(
`CREATE UNIQUE INDEX "IDX_da522b4008a9f5d7743b87ad55" ON "__chart__test_grouped" ("date") WHERE "group" IS NULL`,
);
awaitqueryRunner.query(
`CREATE UNIQUE INDEX "IDX_a0cd75442dd10d0643a17c4a49" ON "__chart__test_unique" ("date", "group") `,
);
awaitqueryRunner.query(
`CREATE UNIQUE INDEX "IDX_16effb2e888f6763673b579f80" ON "__chart__test_unique" ("date") WHERE "group" IS NULL`,
);
awaitqueryRunner.query(
`CREATE UNIQUE INDEX "IDX_a319e5dbf47e8a17497623beae" ON "__chart__test" ("date", "group") `,
);
awaitqueryRunner.query(
`CREATE UNIQUE INDEX "IDX_dab383a36f3c9db4a0c9b02cf3" ON "__chart__test" ("date") WHERE "group" IS NULL`,
);
awaitqueryRunner.query(
`CREATE UNIQUE INDEX "IDX_337e9599f278bd7537fe30876f" ON "__chart__users" ("date", "group") `,
);
awaitqueryRunner.query(
`CREATE UNIQUE INDEX "IDX_66feba81e1795d176d06c0b1e6" ON "__chart__users" ("date") WHERE "group" IS NULL`,