14 lines
489 B
TypeScript
14 lines
489 B
TypeScript
import { MigrationInterface, QueryRunner } from 'typeorm';
|
|
|
|
export class ServerChannels1000000000002 implements MigrationInterface {
|
|
name = 'ServerChannels1000000000002';
|
|
|
|
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
await queryRunner.query(`ALTER TABLE "servers" ADD COLUMN "channels" TEXT NOT NULL DEFAULT '[]'`);
|
|
}
|
|
|
|
public async down(queryRunner: QueryRunner): Promise<void> {
|
|
await queryRunner.query(`ALTER TABLE "servers" DROP COLUMN "channels"`);
|
|
}
|
|
}
|