Properly order reaction roles
This commit is contained in:
parent
7124898568
commit
43c23263f0
7 changed files with 41 additions and 9 deletions
18
backend/src/migrations/1622939525343-OrderReactionRoles.ts
Normal file
18
backend/src/migrations/1622939525343-OrderReactionRoles.ts
Normal 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");
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue