mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-29 21:37:34 -07:00
15 lines
458 B
TypeScript
15 lines
458 B
TypeScript
import { MigrationInterface, QueryRunner } from "typeorm";
|
|
export class CustomEmojiCategory1571220798684 implements MigrationInterface {
|
|
async up(queryRunner: QueryRunner): Promise<void> {
|
|
await queryRunner.query(
|
|
`ALTER TABLE "emoji" ADD "category" character varying(128)`,
|
|
undefined,
|
|
);
|
|
}
|
|
async down(queryRunner: QueryRunner): Promise<void> {
|
|
await queryRunner.query(
|
|
`ALTER TABLE "emoji" DROP COLUMN "category"`,
|
|
undefined,
|
|
);
|
|
}
|
|
}
|