blob: 6e1ac3f8723768565edd8119d94ce5509e37c7c7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
import { MigrationInterface, QueryRunner } from "typeorm";
export class guildMemberProfiles1661885910534 implements MigrationInterface {
name = 'guildMemberProfiles1661885910534'
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`
ALTER TABLE \`members\`
ADD \`avatar\` varchar(255) NULL
`);
await queryRunner.query(`
ALTER TABLE \`members\`
ADD \`banner\` varchar(255) NULL
`);
await queryRunner.query(`
ALTER TABLE \`members\`
ADD \`bio\` varchar(255) NOT NULL
`);
await queryRunner.query(`
ALTER TABLE \`members\`
ADD \`communication_disabled_until\` datetime NULL
`);
}
public async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`
ALTER TABLE \`members\` DROP COLUMN \`communication_disabled_until\`
`);
await queryRunner.query(`
ALTER TABLE \`members\` DROP COLUMN \`bio\`
`);
await queryRunner.query(`
ALTER TABLE \`members\` DROP COLUMN \`banner\`
`);
await queryRunner.query(`
ALTER TABLE \`members\` DROP COLUMN \`avatar\`
`);
}
}
|