2022-03-01 00:07:03 +09:00
|
|
|
export class chartV221615966519402 {
|
2023-04-07 10:56:46 +09:00
|
|
|
constructor() {
|
|
|
|
this.name = "chartV221615966519402";
|
|
|
|
}
|
|
|
|
async up(queryRunner) {
|
|
|
|
await queryRunner.query(
|
|
|
|
`ALTER TABLE "__chart__active_users" ADD "___local_users" character varying array NOT NULL DEFAULT '{}'::varchar[]`,
|
|
|
|
);
|
|
|
|
await queryRunner.query(
|
|
|
|
`ALTER TABLE "__chart__active_users" ADD "___remote_users" character varying array NOT NULL DEFAULT '{}'::varchar[]`,
|
|
|
|
);
|
|
|
|
await queryRunner.query(
|
|
|
|
`ALTER TABLE "__chart__hashtag" ADD "___local_users" character varying array NOT NULL DEFAULT '{}'::varchar[]`,
|
|
|
|
);
|
|
|
|
await queryRunner.query(
|
|
|
|
`ALTER TABLE "__chart__hashtag" ADD "___remote_users" character varying array NOT NULL DEFAULT '{}'::varchar[]`,
|
|
|
|
);
|
|
|
|
await queryRunner.query(
|
|
|
|
`ALTER TABLE "__chart__test_unique" ADD "___foo" character varying array NOT NULL DEFAULT '{}'::varchar[]`,
|
|
|
|
);
|
|
|
|
}
|
|
|
|
async down(queryRunner) {
|
|
|
|
await queryRunner.query(
|
|
|
|
`ALTER TABLE "__chart__test_unique" DROP COLUMN "___foo"`,
|
|
|
|
);
|
|
|
|
await queryRunner.query(
|
|
|
|
`ALTER TABLE "__chart__hashtag" DROP COLUMN "___remote_users"`,
|
|
|
|
);
|
|
|
|
await queryRunner.query(
|
|
|
|
`ALTER TABLE "__chart__hashtag" DROP COLUMN "___local_users"`,
|
|
|
|
);
|
|
|
|
await queryRunner.query(
|
|
|
|
`ALTER TABLE "__chart__active_users" DROP COLUMN "___remote_users"`,
|
|
|
|
);
|
|
|
|
await queryRunner.query(
|
|
|
|
`ALTER TABLE "__chart__active_users" DROP COLUMN "___local_users"`,
|
|
|
|
);
|
|
|
|
}
|
2021-03-18 11:17:05 +09:00
|
|
|
}
|