From b800fbe741f515b1d655f68292d9c860407a6034 Mon Sep 17 00:00:00 2001 From: ZappyZep Date: Fri, 25 Oct 2024 11:54:25 +0000 Subject: [PATCH] prettify --- .../1573248462469-MoveStarboardsToConfig.ts | 39 ++++++++++++------- dashboard/src/index.html | 5 ++- 2 files changed, 28 insertions(+), 16 deletions(-) diff --git a/backend/src/migrations/1573248462469-MoveStarboardsToConfig.ts b/backend/src/migrations/1573248462469-MoveStarboardsToConfig.ts index e1f967b1..881fc3e7 100644 --- a/backend/src/migrations/1573248462469-MoveStarboardsToConfig.ts +++ b/backend/src/migrations/1573248462469-MoveStarboardsToConfig.ts @@ -3,18 +3,24 @@ import { MigrationInterface, QueryRunner, Table, TableColumn } from "typeorm"; export class MoveStarboardsToConfig1573248462469 implements MigrationInterface { public async up(queryRunner: QueryRunner): Promise { // Create a new column for the channel's id - await queryRunner.addColumn("starboard_messages", new TableColumn({ - name: "starboard_channel_id", - type: "bigint", - unsigned: true, - })); + await queryRunner.addColumn( + "starboard_messages", + new TableColumn({ + name: "starboard_channel_id", + type: "bigint", + unsigned: true, + }), + ); // Since we are removing the guild_id with the starboards table, we might want it here - await queryRunner.addColumn("starboard_messages", new TableColumn({ - name: "guild_id", - type: "bigint", - unsigned: true, - })); + await queryRunner.addColumn( + "starboard_messages", + new TableColumn({ + name: "guild_id", + type: "bigint", + unsigned: true, + }), + ); // Migrate the old starboard_id to the new starboard_channel_id await queryRunner.query(` @@ -43,11 +49,14 @@ export class MoveStarboardsToConfig1573248462469 implements MigrationInterface { await queryRunner.dropColumn("starboard_messages", "starboard_channel_id"); await queryRunner.dropColumn("starboard_messages", "guild_id"); - await queryRunner.addColumn("starboard_messages", new TableColumn({ - name: "starboard_id", - type: "int", - unsigned: true, - })); + await queryRunner.addColumn( + "starboard_messages", + new TableColumn({ + name: "starboard_id", + type: "int", + unsigned: true, + }), + ); await queryRunner.query(` ALTER TABLE starboard_messages diff --git a/dashboard/src/index.html b/dashboard/src/index.html index 3d64efa9..242ed037 100644 --- a/dashboard/src/index.html +++ b/dashboard/src/index.html @@ -8,7 +8,10 @@ /> - + ZappyZep - Moderation bot for Discord