3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-24 01:55:03 +00:00

Properly order reaction roles

This commit is contained in:
Dark 2021-06-06 02:41:06 +02:00
parent 167cf2adf1
commit 18fe83c65f
7 changed files with 41 additions and 9 deletions

View file

@ -0,0 +1,18 @@
import { MigrationInterface, QueryRunner, TableColumn } from "typeorm";
export class OrderReactionRoles1622939525343 implements MigrationInterface {
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.addColumn(
"reaction_roles",
new TableColumn({
name: "order",
type: "int",
isNullable: true,
}),
);
}
public async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.dropColumn("reaction_roles", "order");
}
}