summary refs log tree commit diff
path: root/util/src/migrations/1633864260873-EmojiRoles.ts
blob: f0d709f207cda530ecf628415792c26bfa6788f4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
import { MigrationInterface, QueryRunner } from "typeorm";

export class EmojiRoles1633864260873 implements MigrationInterface {
	name = "EmojiRoles1633864260873";

	public async up(queryRunner: QueryRunner): Promise<void> {
		await queryRunner.query(`ALTER TABLE "emojis" ADD "roles" text NOT NULL DEFAULT ''`);
	}

	public async down(queryRunner: QueryRunner): Promise<void> {
		await queryRunner.query(`ALTER TABLE "emojis" DROP COLUMN column_name "roles"`);
	}
}