Discord Permissions will be revoked, when under a penalty

This commit is contained in:
PxlLoewe
2026-01-31 22:48:26 +01:00
parent d1c49a3208
commit ac441e908d
7 changed files with 94 additions and 40 deletions

View File

@@ -0,0 +1,3 @@
-- AlterTable
ALTER TABLE "Penalty" ADD COLUMN "addPermissionApplied" BOOLEAN NOT NULL DEFAULT false,
ADD COLUMN "removePermissionApplied" BOOLEAN NOT NULL DEFAULT false;

View File

@@ -0,0 +1,13 @@
/*
Warnings:
- The primary key for the `FormerDiscordAccount` table will be changed. If it partially fails, the table could be left without primary key constraint.
*/
-- DropIndex
DROP INDEX "FormerDiscordAccount_discord_id_key";
-- AlterTable
ALTER TABLE "FormerDiscordAccount" DROP CONSTRAINT "FormerDiscordAccount_pkey",
ADD COLUMN "id" SERIAL NOT NULL,
ADD CONSTRAINT "FormerDiscordAccount_pkey" PRIMARY KEY ("id");