2021-11-11 10:02:25 -07:00
|
|
|
"use strict";
|
|
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
|
class chartV221615966519402 {
|
|
|
|
constructor() {
|
|
|
|
this.name = 'chartV221615966519402';
|
|
|
|
}
|
|
|
|
async up(queryRunner) {
|
2021-03-17 20:17:05 -06:00
|
|
|
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[]`);
|
|
|
|
}
|
2021-11-11 10:02:25 -07:00
|
|
|
async down(queryRunner) {
|
2021-03-17 20:17:05 -06:00
|
|
|
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-11-11 10:02:25 -07:00
|
|
|
exports.chartV221615966519402 = chartV221615966519402;
|