From b500921611fb655f23e9a69031c2ed6a7888628f Mon Sep 17 00:00:00 2001 From: "Restyled.io" Date: Fri, 21 Oct 2022 10:19:50 +0000 Subject: [PATCH 1/2] Restyled by pg_format --- .../20221019063840_init/migration.sql | 12 +- .../20221019064232_init/migration.sql | 21 +++- .../20221019081114_modules/migration.sql | 53 ++++++-- .../20221019081816_modules/migration.sql | 33 +++-- .../20221019113258_modules/migration.sql | 38 ++++-- .../20221019114543_modules/migration.sql | 39 ++++-- .../20221019142757_modules/migration.sql | 23 +++- .../20221019153247_cooldowns/migration.sql | 4 +- .../20221019153652_audit_dates/migration.sql | 118 ++++++++++++++---- .../20221019172846_embedconfig/migration.sql | 42 +++++-- .../20221020081238_cpgg_api/migration.sql | 16 ++- .../migration.sql | 25 +++- .../20221020084922_cooldown_int/migration.sql | 33 +++-- .../migration.sql | 53 ++++++-- .../20221020113312_shop_module/migration.sql | 57 +++++++-- .../migration.sql | 61 +++++++-- .../migration.sql | 71 ++++++++--- .../migration.sql | 73 ++++++++--- 18 files changed, 613 insertions(+), 159 deletions(-) diff --git a/prisma/migrations/20221019063840_init/migration.sql b/prisma/migrations/20221019063840_init/migration.sql index 56ad967..d69499d 100644 --- a/prisma/migrations/20221019063840_init/migration.sql +++ b/prisma/migrations/20221019063840_init/migration.sql @@ -4,21 +4,27 @@ CREATE TABLE "Guild" ( ); -- CreateTable + CREATE TABLE "User" ( "id" TEXT NOT NULL ); -- CreateTable + CREATE TABLE "GuildMember" ( "userId" TEXT NOT NULL, "guildId" TEXT NOT NULL ); -- CreateIndex -CREATE UNIQUE INDEX "Guild_id_key" ON "Guild"("id"); + +CREATE UNIQUE INDEX "Guild_id_key" ON "Guild" ("id"); -- CreateIndex -CREATE UNIQUE INDEX "User_id_key" ON "User"("id"); + +CREATE UNIQUE INDEX "User_id_key" ON "User" ("id"); -- CreateIndex -CREATE UNIQUE INDEX "GuildMember_userId_guildId_key" ON "GuildMember"("userId", "guildId"); + +CREATE UNIQUE INDEX "GuildMember_userId_guildId_key" ON "GuildMember" ("userId", "guildId"); + diff --git a/prisma/migrations/20221019064232_init/migration.sql b/prisma/migrations/20221019064232_init/migration.sql index c1ab212..27ed6aa 100644 --- a/prisma/migrations/20221019064232_init/migration.sql +++ b/prisma/migrations/20221019064232_init/migration.sql @@ -1,14 +1,27 @@ -- RedefineTables -PRAGMA foreign_keys=OFF; +PRAGMA foreign_keys = OFF; + CREATE TABLE "new_GuildMember" ( "userId" TEXT NOT NULL, "guildId" TEXT NOT NULL, CONSTRAINT "GuildMember_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User" ("id") ON DELETE RESTRICT ON UPDATE CASCADE, CONSTRAINT "GuildMember_guildId_fkey" FOREIGN KEY ("guildId") REFERENCES "Guild" ("id") ON DELETE RESTRICT ON UPDATE CASCADE ); -INSERT INTO "new_GuildMember" ("guildId", "userId") SELECT "guildId", "userId" FROM "GuildMember"; + +INSERT INTO "new_GuildMember" ("guildId", "userId") +SELECT + "guildId", + "userId" +FROM + "GuildMember"; + DROP TABLE "GuildMember"; + ALTER TABLE "new_GuildMember" RENAME TO "GuildMember"; -CREATE UNIQUE INDEX "GuildMember_userId_guildId_key" ON "GuildMember"("userId", "guildId"); + +CREATE UNIQUE INDEX "GuildMember_userId_guildId_key" ON "GuildMember" ("userId", "guildId"); + PRAGMA foreign_key_check; -PRAGMA foreign_keys=ON; + +PRAGMA foreign_keys = ON; + diff --git a/prisma/migrations/20221019081114_modules/migration.sql b/prisma/migrations/20221019081114_modules/migration.sql index 2ada6f6..9ebd925 100644 --- a/prisma/migrations/20221019081114_modules/migration.sql +++ b/prisma/migrations/20221019081114_modules/migration.sql @@ -1,8 +1,12 @@ -- AlterTable -ALTER TABLE "GuildMember" ADD COLUMN "creditsEarned" INTEGER; -ALTER TABLE "GuildMember" ADD COLUMN "pointsEarned" INTEGER; +ALTER TABLE "GuildMember" + ADD COLUMN "creditsEarned" INTEGER; + +ALTER TABLE "GuildMember" + ADD COLUMN "pointsEarned" INTEGER; -- CreateTable + CREATE TABLE "GuildCounter" ( "guildId" TEXT NOT NULL, "channelId" TEXT NOT NULL, @@ -12,34 +16,57 @@ CREATE TABLE "GuildCounter" ( ); -- RedefineTables -PRAGMA foreign_keys=OFF; + +PRAGMA foreign_keys = OFF; + CREATE TABLE "new_Guild" ( "id" TEXT NOT NULL, - "creditsEnabled" BOOLEAN NOT NULL DEFAULT false, + "creditsEnabled" BOOLEAN NOT NULL DEFAULT FALSE, "creditsRate" INTEGER NOT NULL DEFAULT 1, "creditsTimeout" INTEGER NOT NULL DEFAULT 5, "creditsWorkRate" INTEGER NOT NULL DEFAULT 25, "creditsWorkTimeout" INTEGER NOT NULL DEFAULT 86400, - "pointsEnabled" BOOLEAN NOT NULL DEFAULT false, + "pointsEnabled" BOOLEAN NOT NULL DEFAULT FALSE, "pointsRate" INTEGER NOT NULL DEFAULT 1, "pointsTimeout" INTEGER NOT NULL DEFAULT 5, - "reputationsEnabled" BOOLEAN NOT NULL DEFAULT false, - "countersEnabled" BOOLEAN NOT NULL DEFAULT false + "reputationsEnabled" BOOLEAN NOT NULL DEFAULT FALSE, + "countersEnabled" BOOLEAN NOT NULL DEFAULT FALSE ); -INSERT INTO "new_Guild" ("id") SELECT "id" FROM "Guild"; + +INSERT INTO "new_Guild" ("id") +SELECT + "id" +FROM + "Guild"; + DROP TABLE "Guild"; + ALTER TABLE "new_Guild" RENAME TO "Guild"; -CREATE UNIQUE INDEX "Guild_id_key" ON "Guild"("id"); + +CREATE UNIQUE INDEX "Guild_id_key" ON "Guild" ("id"); + CREATE TABLE "new_User" ( "id" TEXT NOT NULL, "reputationsEarned" INTEGER NOT NULL DEFAULT 0 ); -INSERT INTO "new_User" ("id") SELECT "id" FROM "User"; + +INSERT INTO "new_User" ("id") +SELECT + "id" +FROM + "User"; + DROP TABLE "User"; + ALTER TABLE "new_User" RENAME TO "User"; -CREATE UNIQUE INDEX "User_id_key" ON "User"("id"); + +CREATE UNIQUE INDEX "User_id_key" ON "User" ("id"); + PRAGMA foreign_key_check; -PRAGMA foreign_keys=ON; + +PRAGMA foreign_keys = ON; -- CreateIndex -CREATE UNIQUE INDEX "GuildCounter_guildId_channelId_key" ON "GuildCounter"("guildId", "channelId"); + +CREATE UNIQUE INDEX "GuildCounter_guildId_channelId_key" ON "GuildCounter" ("guildId", "channelId"); + diff --git a/prisma/migrations/20221019081816_modules/migration.sql b/prisma/migrations/20221019081816_modules/migration.sql index 4e87e61..4cba8c4 100644 --- a/prisma/migrations/20221019081816_modules/migration.sql +++ b/prisma/migrations/20221019081816_modules/migration.sql @@ -1,13 +1,14 @@ /* - Warnings: + Warnings: - - You are about to drop the column `counter` on the `GuildCounter` table. All the data in the column will be lost. - - You are about to drop the column `word` on the `GuildCounter` table. All the data in the column will be lost. - - Added the required column `triggerWord` to the `GuildCounter` table without a default value. This is not possible if the table is not empty. - -*/ + - You are about to drop the column `counter` on the `GuildCounter` table. All the data in the column will be lost. + - You are about to drop the column `word` on the `GuildCounter` table. All the data in the column will be lost. + - Added the required column `triggerWord` to the `GuildCounter` table without a default value. This is not possible if the table is not empty. + */ -- RedefineTables -PRAGMA foreign_keys=OFF; + +PRAGMA foreign_keys = OFF; + CREATE TABLE "new_GuildCounter" ( "guildId" TEXT NOT NULL, "channelId" TEXT NOT NULL, @@ -15,9 +16,21 @@ CREATE TABLE "new_GuildCounter" ( "count" INTEGER NOT NULL DEFAULT 0, CONSTRAINT "GuildCounter_guildId_fkey" FOREIGN KEY ("guildId") REFERENCES "Guild" ("id") ON DELETE RESTRICT ON UPDATE CASCADE ); -INSERT INTO "new_GuildCounter" ("channelId", "guildId") SELECT "channelId", "guildId" FROM "GuildCounter"; + +INSERT INTO "new_GuildCounter" ("channelId", "guildId") +SELECT + "channelId", + "guildId" +FROM + "GuildCounter"; + DROP TABLE "GuildCounter"; + ALTER TABLE "new_GuildCounter" RENAME TO "GuildCounter"; -CREATE UNIQUE INDEX "GuildCounter_guildId_channelId_key" ON "GuildCounter"("guildId", "channelId"); + +CREATE UNIQUE INDEX "GuildCounter_guildId_channelId_key" ON "GuildCounter" ("guildId", "channelId"); + PRAGMA foreign_key_check; -PRAGMA foreign_keys=ON; + +PRAGMA foreign_keys = ON; + diff --git a/prisma/migrations/20221019113258_modules/migration.sql b/prisma/migrations/20221019113258_modules/migration.sql index c28690d..d88a0fb 100644 --- a/prisma/migrations/20221019113258_modules/migration.sql +++ b/prisma/migrations/20221019113258_modules/migration.sql @@ -1,22 +1,44 @@ -- RedefineTables -PRAGMA foreign_keys=OFF; +PRAGMA foreign_keys = OFF; + CREATE TABLE "new_Guild" ( "id" TEXT NOT NULL, - "creditsEnabled" BOOLEAN NOT NULL DEFAULT false, + "creditsEnabled" BOOLEAN NOT NULL DEFAULT FALSE, "creditsRate" INTEGER NOT NULL DEFAULT 1, "creditsTimeout" INTEGER NOT NULL DEFAULT 5, "creditsWorkRate" INTEGER NOT NULL DEFAULT 25, "creditsWorkTimeout" INTEGER NOT NULL DEFAULT 86400, "creditsMinimumLength" INTEGER NOT NULL DEFAULT 5, - "pointsEnabled" BOOLEAN NOT NULL DEFAULT false, + "pointsEnabled" BOOLEAN NOT NULL DEFAULT FALSE, "pointsRate" INTEGER NOT NULL DEFAULT 1, "pointsTimeout" INTEGER NOT NULL DEFAULT 5, - "reputationsEnabled" BOOLEAN NOT NULL DEFAULT false, - "countersEnabled" BOOLEAN NOT NULL DEFAULT false + "reputationsEnabled" BOOLEAN NOT NULL DEFAULT FALSE, + "countersEnabled" BOOLEAN NOT NULL DEFAULT FALSE ); -INSERT INTO "new_Guild" ("countersEnabled", "creditsEnabled", "creditsRate", "creditsTimeout", "creditsWorkRate", "creditsWorkTimeout", "id", "pointsEnabled", "pointsRate", "pointsTimeout", "reputationsEnabled") SELECT "countersEnabled", "creditsEnabled", "creditsRate", "creditsTimeout", "creditsWorkRate", "creditsWorkTimeout", "id", "pointsEnabled", "pointsRate", "pointsTimeout", "reputationsEnabled" FROM "Guild"; + +INSERT INTO "new_Guild" ("countersEnabled", "creditsEnabled", "creditsRate", "creditsTimeout", "creditsWorkRate", "creditsWorkTimeout", "id", "pointsEnabled", "pointsRate", "pointsTimeout", "reputationsEnabled") +SELECT + "countersEnabled", + "creditsEnabled", + "creditsRate", + "creditsTimeout", + "creditsWorkRate", + "creditsWorkTimeout", + "id", + "pointsEnabled", + "pointsRate", + "pointsTimeout", + "reputationsEnabled" +FROM + "Guild"; + DROP TABLE "Guild"; + ALTER TABLE "new_Guild" RENAME TO "Guild"; -CREATE UNIQUE INDEX "Guild_id_key" ON "Guild"("id"); + +CREATE UNIQUE INDEX "Guild_id_key" ON "Guild" ("id"); + PRAGMA foreign_key_check; -PRAGMA foreign_keys=ON; + +PRAGMA foreign_keys = ON; + diff --git a/prisma/migrations/20221019114543_modules/migration.sql b/prisma/migrations/20221019114543_modules/migration.sql index aa9074e..d15916d 100644 --- a/prisma/migrations/20221019114543_modules/migration.sql +++ b/prisma/migrations/20221019114543_modules/migration.sql @@ -1,23 +1,46 @@ -- RedefineTables -PRAGMA foreign_keys=OFF; +PRAGMA foreign_keys = OFF; + CREATE TABLE "new_Guild" ( "id" TEXT NOT NULL, - "creditsEnabled" BOOLEAN NOT NULL DEFAULT false, + "creditsEnabled" BOOLEAN NOT NULL DEFAULT FALSE, "creditsRate" INTEGER NOT NULL DEFAULT 1, "creditsTimeout" INTEGER NOT NULL DEFAULT 5, "creditsWorkRate" INTEGER NOT NULL DEFAULT 25, "creditsWorkTimeout" INTEGER NOT NULL DEFAULT 86400, "creditsMinimumLength" INTEGER NOT NULL DEFAULT 5, - "pointsEnabled" BOOLEAN NOT NULL DEFAULT false, + "pointsEnabled" BOOLEAN NOT NULL DEFAULT FALSE, "pointsRate" INTEGER NOT NULL DEFAULT 1, "pointsTimeout" INTEGER NOT NULL DEFAULT 5, "pointsMinimumLength" INTEGER NOT NULL DEFAULT 5, - "reputationsEnabled" BOOLEAN NOT NULL DEFAULT false, - "countersEnabled" BOOLEAN NOT NULL DEFAULT false + "reputationsEnabled" BOOLEAN NOT NULL DEFAULT FALSE, + "countersEnabled" BOOLEAN NOT NULL DEFAULT FALSE ); -INSERT INTO "new_Guild" ("countersEnabled", "creditsEnabled", "creditsMinimumLength", "creditsRate", "creditsTimeout", "creditsWorkRate", "creditsWorkTimeout", "id", "pointsEnabled", "pointsRate", "pointsTimeout", "reputationsEnabled") SELECT "countersEnabled", "creditsEnabled", "creditsMinimumLength", "creditsRate", "creditsTimeout", "creditsWorkRate", "creditsWorkTimeout", "id", "pointsEnabled", "pointsRate", "pointsTimeout", "reputationsEnabled" FROM "Guild"; + +INSERT INTO "new_Guild" ("countersEnabled", "creditsEnabled", "creditsMinimumLength", "creditsRate", "creditsTimeout", "creditsWorkRate", "creditsWorkTimeout", "id", "pointsEnabled", "pointsRate", "pointsTimeout", "reputationsEnabled") +SELECT + "countersEnabled", + "creditsEnabled", + "creditsMinimumLength", + "creditsRate", + "creditsTimeout", + "creditsWorkRate", + "creditsWorkTimeout", + "id", + "pointsEnabled", + "pointsRate", + "pointsTimeout", + "reputationsEnabled" +FROM + "Guild"; + DROP TABLE "Guild"; + ALTER TABLE "new_Guild" RENAME TO "Guild"; -CREATE UNIQUE INDEX "Guild_id_key" ON "Guild"("id"); + +CREATE UNIQUE INDEX "Guild_id_key" ON "Guild" ("id"); + PRAGMA foreign_key_check; -PRAGMA foreign_keys=ON; + +PRAGMA foreign_keys = ON; + diff --git a/prisma/migrations/20221019142757_modules/migration.sql b/prisma/migrations/20221019142757_modules/migration.sql index ec153f0..e4bccc3 100644 --- a/prisma/migrations/20221019142757_modules/migration.sql +++ b/prisma/migrations/20221019142757_modules/migration.sql @@ -1,5 +1,6 @@ -- RedefineTables -PRAGMA foreign_keys=OFF; +PRAGMA foreign_keys = OFF; + CREATE TABLE "new_GuildMember" ( "userId" TEXT NOT NULL, "guildId" TEXT NOT NULL, @@ -8,9 +9,23 @@ CREATE TABLE "new_GuildMember" ( CONSTRAINT "GuildMember_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User" ("id") ON DELETE RESTRICT ON UPDATE CASCADE, CONSTRAINT "GuildMember_guildId_fkey" FOREIGN KEY ("guildId") REFERENCES "Guild" ("id") ON DELETE RESTRICT ON UPDATE CASCADE ); -INSERT INTO "new_GuildMember" ("creditsEarned", "guildId", "pointsEarned", "userId") SELECT coalesce("creditsEarned", 0) AS "creditsEarned", "guildId", coalesce("pointsEarned", 0) AS "pointsEarned", "userId" FROM "GuildMember"; + +INSERT INTO "new_GuildMember" ("creditsEarned", "guildId", "pointsEarned", "userId") +SELECT + coalesce("creditsEarned", 0) AS "creditsEarned", + "guildId", + coalesce("pointsEarned", 0) AS "pointsEarned", + "userId" +FROM + "GuildMember"; + DROP TABLE "GuildMember"; + ALTER TABLE "new_GuildMember" RENAME TO "GuildMember"; -CREATE UNIQUE INDEX "GuildMember_userId_guildId_key" ON "GuildMember"("userId", "guildId"); + +CREATE UNIQUE INDEX "GuildMember_userId_guildId_key" ON "GuildMember" ("userId", "guildId"); + PRAGMA foreign_key_check; -PRAGMA foreign_keys=ON; + +PRAGMA foreign_keys = ON; + diff --git a/prisma/migrations/20221019153247_cooldowns/migration.sql b/prisma/migrations/20221019153247_cooldowns/migration.sql index ddaf6d9..58b4dff 100644 --- a/prisma/migrations/20221019153247_cooldowns/migration.sql +++ b/prisma/migrations/20221019153247_cooldowns/migration.sql @@ -9,4 +9,6 @@ CREATE TABLE "Cooldown" ( ); -- CreateIndex -CREATE UNIQUE INDEX "Cooldown_guildId_userId_timeoutId_key" ON "Cooldown"("guildId", "userId", "timeoutId"); + +CREATE UNIQUE INDEX "Cooldown_guildId_userId_timeoutId_key" ON "Cooldown" ("guildId", "userId", "timeoutId"); + diff --git a/prisma/migrations/20221019153652_audit_dates/migration.sql b/prisma/migrations/20221019153652_audit_dates/migration.sql index 7bc464b..0171217 100644 --- a/prisma/migrations/20221019153652_audit_dates/migration.sql +++ b/prisma/migrations/20221019153652_audit_dates/migration.sql @@ -1,36 +1,58 @@ /* - Warnings: + Warnings: - - Added the required column `updatedAt` to the `Guild` table without a default value. This is not possible if the table is not empty. - - Added the required column `updatedAt` to the `Cooldown` table without a default value. This is not possible if the table is not empty. - - Added the required column `updatedAt` to the `GuildCounter` table without a default value. This is not possible if the table is not empty. - - Added the required column `updatedAt` to the `User` table without a default value. This is not possible if the table is not empty. - - Added the required column `updatedAt` to the `GuildMember` table without a default value. This is not possible if the table is not empty. - -*/ + - Added the required column `updatedAt` to the `Guild` table without a default value. This is not possible if the table is not empty. + - Added the required column `updatedAt` to the `Cooldown` table without a default value. This is not possible if the table is not empty. + - Added the required column `updatedAt` to the `GuildCounter` table without a default value. This is not possible if the table is not empty. + - Added the required column `updatedAt` to the `User` table without a default value. This is not possible if the table is not empty. + - Added the required column `updatedAt` to the `GuildMember` table without a default value. This is not possible if the table is not empty. + */ -- RedefineTables -PRAGMA foreign_keys=OFF; + +PRAGMA foreign_keys = OFF; + CREATE TABLE "new_Guild" ( "id" TEXT NOT NULL, - "creditsEnabled" BOOLEAN NOT NULL DEFAULT false, + "creditsEnabled" BOOLEAN NOT NULL DEFAULT FALSE, "creditsRate" INTEGER NOT NULL DEFAULT 1, "creditsTimeout" INTEGER NOT NULL DEFAULT 5, "creditsWorkRate" INTEGER NOT NULL DEFAULT 25, "creditsWorkTimeout" INTEGER NOT NULL DEFAULT 86400, "creditsMinimumLength" INTEGER NOT NULL DEFAULT 5, - "pointsEnabled" BOOLEAN NOT NULL DEFAULT false, + "pointsEnabled" BOOLEAN NOT NULL DEFAULT FALSE, "pointsRate" INTEGER NOT NULL DEFAULT 1, "pointsTimeout" INTEGER NOT NULL DEFAULT 5, "pointsMinimumLength" INTEGER NOT NULL DEFAULT 5, - "reputationsEnabled" BOOLEAN NOT NULL DEFAULT false, - "countersEnabled" BOOLEAN NOT NULL DEFAULT false, + "reputationsEnabled" BOOLEAN NOT NULL DEFAULT FALSE, + "countersEnabled" BOOLEAN NOT NULL DEFAULT FALSE, "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, "updatedAt" DATETIME NOT NULL ); -INSERT INTO "new_Guild" ("countersEnabled", "creditsEnabled", "creditsMinimumLength", "creditsRate", "creditsTimeout", "creditsWorkRate", "creditsWorkTimeout", "id", "pointsEnabled", "pointsMinimumLength", "pointsRate", "pointsTimeout", "reputationsEnabled") SELECT "countersEnabled", "creditsEnabled", "creditsMinimumLength", "creditsRate", "creditsTimeout", "creditsWorkRate", "creditsWorkTimeout", "id", "pointsEnabled", "pointsMinimumLength", "pointsRate", "pointsTimeout", "reputationsEnabled" FROM "Guild"; + +INSERT INTO "new_Guild" ("countersEnabled", "creditsEnabled", "creditsMinimumLength", "creditsRate", "creditsTimeout", "creditsWorkRate", "creditsWorkTimeout", "id", "pointsEnabled", "pointsMinimumLength", "pointsRate", "pointsTimeout", "reputationsEnabled") +SELECT + "countersEnabled", + "creditsEnabled", + "creditsMinimumLength", + "creditsRate", + "creditsTimeout", + "creditsWorkRate", + "creditsWorkTimeout", + "id", + "pointsEnabled", + "pointsMinimumLength", + "pointsRate", + "pointsTimeout", + "reputationsEnabled" +FROM + "Guild"; + DROP TABLE "Guild"; + ALTER TABLE "new_Guild" RENAME TO "Guild"; -CREATE UNIQUE INDEX "Guild_id_key" ON "Guild"("id"); + +CREATE UNIQUE INDEX "Guild_id_key" ON "Guild" ("id"); + CREATE TABLE "new_Cooldown" ( "guildId" TEXT NOT NULL, "userId" TEXT NOT NULL, @@ -41,10 +63,22 @@ CREATE TABLE "new_Cooldown" ( CONSTRAINT "Cooldown_guildId_fkey" FOREIGN KEY ("guildId") REFERENCES "Guild" ("id") ON DELETE RESTRICT ON UPDATE CASCADE, CONSTRAINT "Cooldown_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User" ("id") ON DELETE RESTRICT ON UPDATE CASCADE ); -INSERT INTO "new_Cooldown" ("cooldown", "guildId", "timeoutId", "userId") SELECT "cooldown", "guildId", "timeoutId", "userId" FROM "Cooldown"; + +INSERT INTO "new_Cooldown" ("cooldown", "guildId", "timeoutId", "userId") +SELECT + "cooldown", + "guildId", + "timeoutId", + "userId" +FROM + "Cooldown"; + DROP TABLE "Cooldown"; + ALTER TABLE "new_Cooldown" RENAME TO "Cooldown"; -CREATE UNIQUE INDEX "Cooldown_guildId_userId_timeoutId_key" ON "Cooldown"("guildId", "userId", "timeoutId"); + +CREATE UNIQUE INDEX "Cooldown_guildId_userId_timeoutId_key" ON "Cooldown" ("guildId", "userId", "timeoutId"); + CREATE TABLE "new_GuildCounter" ( "guildId" TEXT NOT NULL, "channelId" TEXT NOT NULL, @@ -54,20 +88,42 @@ CREATE TABLE "new_GuildCounter" ( "updatedAt" DATETIME NOT NULL, CONSTRAINT "GuildCounter_guildId_fkey" FOREIGN KEY ("guildId") REFERENCES "Guild" ("id") ON DELETE RESTRICT ON UPDATE CASCADE ); -INSERT INTO "new_GuildCounter" ("channelId", "count", "guildId", "triggerWord") SELECT "channelId", "count", "guildId", "triggerWord" FROM "GuildCounter"; + +INSERT INTO "new_GuildCounter" ("channelId", "count", "guildId", "triggerWord") +SELECT + "channelId", + "count", + "guildId", + "triggerWord" +FROM + "GuildCounter"; + DROP TABLE "GuildCounter"; + ALTER TABLE "new_GuildCounter" RENAME TO "GuildCounter"; -CREATE UNIQUE INDEX "GuildCounter_guildId_channelId_key" ON "GuildCounter"("guildId", "channelId"); + +CREATE UNIQUE INDEX "GuildCounter_guildId_channelId_key" ON "GuildCounter" ("guildId", "channelId"); + CREATE TABLE "new_User" ( "id" TEXT NOT NULL, "reputationsEarned" INTEGER NOT NULL DEFAULT 0, "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, "updatedAt" DATETIME NOT NULL ); -INSERT INTO "new_User" ("id", "reputationsEarned") SELECT "id", "reputationsEarned" FROM "User"; + +INSERT INTO "new_User" ("id", "reputationsEarned") +SELECT + "id", + "reputationsEarned" +FROM + "User"; + DROP TABLE "User"; + ALTER TABLE "new_User" RENAME TO "User"; -CREATE UNIQUE INDEX "User_id_key" ON "User"("id"); + +CREATE UNIQUE INDEX "User_id_key" ON "User" ("id"); + CREATE TABLE "new_GuildMember" ( "userId" TEXT NOT NULL, "guildId" TEXT NOT NULL, @@ -78,9 +134,23 @@ CREATE TABLE "new_GuildMember" ( CONSTRAINT "GuildMember_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User" ("id") ON DELETE RESTRICT ON UPDATE CASCADE, CONSTRAINT "GuildMember_guildId_fkey" FOREIGN KEY ("guildId") REFERENCES "Guild" ("id") ON DELETE RESTRICT ON UPDATE CASCADE ); -INSERT INTO "new_GuildMember" ("creditsEarned", "guildId", "pointsEarned", "userId") SELECT "creditsEarned", "guildId", "pointsEarned", "userId" FROM "GuildMember"; + +INSERT INTO "new_GuildMember" ("creditsEarned", "guildId", "pointsEarned", "userId") +SELECT + "creditsEarned", + "guildId", + "pointsEarned", + "userId" +FROM + "GuildMember"; + DROP TABLE "GuildMember"; + ALTER TABLE "new_GuildMember" RENAME TO "GuildMember"; -CREATE UNIQUE INDEX "GuildMember_userId_guildId_key" ON "GuildMember"("userId", "guildId"); + +CREATE UNIQUE INDEX "GuildMember_userId_guildId_key" ON "GuildMember" ("userId", "guildId"); + PRAGMA foreign_key_check; -PRAGMA foreign_keys=ON; + +PRAGMA foreign_keys = ON; + diff --git a/prisma/migrations/20221019172846_embedconfig/migration.sql b/prisma/migrations/20221019172846_embedconfig/migration.sql index f2d2415..aeea219 100644 --- a/prisma/migrations/20221019172846_embedconfig/migration.sql +++ b/prisma/migrations/20221019172846_embedconfig/migration.sql @@ -1,5 +1,6 @@ -- RedefineTables -PRAGMA foreign_keys=OFF; +PRAGMA foreign_keys = OFF; + CREATE TABLE "new_Guild" ( "id" TEXT NOT NULL, "embedColorSuccess" TEXT NOT NULL DEFAULT '#22bb33', @@ -7,24 +8,49 @@ CREATE TABLE "new_Guild" ( "embedColorError" TEXT NOT NULL DEFAULT '#bb2124', "embedFooterText" TEXT NOT NULL DEFAULT 'https://github.com/ZynerOrg/xyter', "embedFooterIcon" TEXT NOT NULL DEFAULT 'https://github.com/ZynerOrg.png', - "creditsEnabled" BOOLEAN NOT NULL DEFAULT false, + "creditsEnabled" BOOLEAN NOT NULL DEFAULT FALSE, "creditsRate" INTEGER NOT NULL DEFAULT 1, "creditsTimeout" INTEGER NOT NULL DEFAULT 5, "creditsWorkRate" INTEGER NOT NULL DEFAULT 25, "creditsWorkTimeout" INTEGER NOT NULL DEFAULT 86400, "creditsMinimumLength" INTEGER NOT NULL DEFAULT 5, - "pointsEnabled" BOOLEAN NOT NULL DEFAULT false, + "pointsEnabled" BOOLEAN NOT NULL DEFAULT FALSE, "pointsRate" INTEGER NOT NULL DEFAULT 1, "pointsTimeout" INTEGER NOT NULL DEFAULT 5, "pointsMinimumLength" INTEGER NOT NULL DEFAULT 5, - "reputationsEnabled" BOOLEAN NOT NULL DEFAULT false, - "countersEnabled" BOOLEAN NOT NULL DEFAULT false, + "reputationsEnabled" BOOLEAN NOT NULL DEFAULT FALSE, + "countersEnabled" BOOLEAN NOT NULL DEFAULT FALSE, "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, "updatedAt" DATETIME NOT NULL ); -INSERT INTO "new_Guild" ("countersEnabled", "createdAt", "creditsEnabled", "creditsMinimumLength", "creditsRate", "creditsTimeout", "creditsWorkRate", "creditsWorkTimeout", "id", "pointsEnabled", "pointsMinimumLength", "pointsRate", "pointsTimeout", "reputationsEnabled", "updatedAt") SELECT "countersEnabled", "createdAt", "creditsEnabled", "creditsMinimumLength", "creditsRate", "creditsTimeout", "creditsWorkRate", "creditsWorkTimeout", "id", "pointsEnabled", "pointsMinimumLength", "pointsRate", "pointsTimeout", "reputationsEnabled", "updatedAt" FROM "Guild"; + +INSERT INTO "new_Guild" ("countersEnabled", "createdAt", "creditsEnabled", "creditsMinimumLength", "creditsRate", "creditsTimeout", "creditsWorkRate", "creditsWorkTimeout", "id", "pointsEnabled", "pointsMinimumLength", "pointsRate", "pointsTimeout", "reputationsEnabled", "updatedAt") +SELECT + "countersEnabled", + "createdAt", + "creditsEnabled", + "creditsMinimumLength", + "creditsRate", + "creditsTimeout", + "creditsWorkRate", + "creditsWorkTimeout", + "id", + "pointsEnabled", + "pointsMinimumLength", + "pointsRate", + "pointsTimeout", + "reputationsEnabled", + "updatedAt" +FROM + "Guild"; + DROP TABLE "Guild"; + ALTER TABLE "new_Guild" RENAME TO "Guild"; -CREATE UNIQUE INDEX "Guild_id_key" ON "Guild"("id"); + +CREATE UNIQUE INDEX "Guild_id_key" ON "Guild" ("id"); + PRAGMA foreign_key_check; -PRAGMA foreign_keys=ON; + +PRAGMA foreign_keys = ON; + diff --git a/prisma/migrations/20221020081238_cpgg_api/migration.sql b/prisma/migrations/20221020081238_cpgg_api/migration.sql index cf7293f..c69d565 100644 --- a/prisma/migrations/20221020081238_cpgg_api/migration.sql +++ b/prisma/migrations/20221020081238_cpgg_api/migration.sql @@ -1,5 +1,13 @@ -- AlterTable -ALTER TABLE "Guild" ADD COLUMN "apiCpggTokenContent" TEXT; -ALTER TABLE "Guild" ADD COLUMN "apiCpggTokenIv" TEXT; -ALTER TABLE "Guild" ADD COLUMN "apiCpggUrlContent" TEXT; -ALTER TABLE "Guild" ADD COLUMN "apiCpggUrlIv" TEXT; +ALTER TABLE "Guild" + ADD COLUMN "apiCpggTokenContent" TEXT; + +ALTER TABLE "Guild" + ADD COLUMN "apiCpggTokenIv" TEXT; + +ALTER TABLE "Guild" + ADD COLUMN "apiCpggUrlContent" TEXT; + +ALTER TABLE "Guild" + ADD COLUMN "apiCpggUrlIv" TEXT; + diff --git a/prisma/migrations/20221020084750_cooldown_string/migration.sql b/prisma/migrations/20221020084750_cooldown_string/migration.sql index 24aefc0..20f0bf5 100644 --- a/prisma/migrations/20221020084750_cooldown_string/migration.sql +++ b/prisma/migrations/20221020084750_cooldown_string/migration.sql @@ -1,5 +1,6 @@ -- RedefineTables -PRAGMA foreign_keys=OFF; +PRAGMA foreign_keys = OFF; + CREATE TABLE "new_Cooldown" ( "guildId" TEXT NOT NULL, "userId" TEXT NOT NULL, @@ -10,9 +11,25 @@ CREATE TABLE "new_Cooldown" ( CONSTRAINT "Cooldown_guildId_fkey" FOREIGN KEY ("guildId") REFERENCES "Guild" ("id") ON DELETE RESTRICT ON UPDATE CASCADE, CONSTRAINT "Cooldown_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User" ("id") ON DELETE RESTRICT ON UPDATE CASCADE ); -INSERT INTO "new_Cooldown" ("cooldown", "createdAt", "guildId", "timeoutId", "updatedAt", "userId") SELECT "cooldown", "createdAt", "guildId", "timeoutId", "updatedAt", "userId" FROM "Cooldown"; + +INSERT INTO "new_Cooldown" ("cooldown", "createdAt", "guildId", "timeoutId", "updatedAt", "userId") +SELECT + "cooldown", + "createdAt", + "guildId", + "timeoutId", + "updatedAt", + "userId" +FROM + "Cooldown"; + DROP TABLE "Cooldown"; + ALTER TABLE "new_Cooldown" RENAME TO "Cooldown"; -CREATE UNIQUE INDEX "Cooldown_guildId_userId_timeoutId_key" ON "Cooldown"("guildId", "userId", "timeoutId"); + +CREATE UNIQUE INDEX "Cooldown_guildId_userId_timeoutId_key" ON "Cooldown" ("guildId", "userId", "timeoutId"); + PRAGMA foreign_key_check; -PRAGMA foreign_keys=ON; + +PRAGMA foreign_keys = ON; + diff --git a/prisma/migrations/20221020084922_cooldown_int/migration.sql b/prisma/migrations/20221020084922_cooldown_int/migration.sql index 51c6d0b..282e7d1 100644 --- a/prisma/migrations/20221020084922_cooldown_int/migration.sql +++ b/prisma/migrations/20221020084922_cooldown_int/migration.sql @@ -1,11 +1,12 @@ /* - Warnings: + Warnings: - - You are about to alter the column `cooldown` on the `Cooldown` table. The data in that column could be lost. The data in that column will be cast from `String` to `Int`. - -*/ + - You are about to alter the column `cooldown` on the `Cooldown` table. The data in that column could be lost. The data in that column will be cast from `String` to `Int`. + */ -- RedefineTables -PRAGMA foreign_keys=OFF; + +PRAGMA foreign_keys = OFF; + CREATE TABLE "new_Cooldown" ( "guildId" TEXT NOT NULL, "userId" TEXT NOT NULL, @@ -16,9 +17,25 @@ CREATE TABLE "new_Cooldown" ( CONSTRAINT "Cooldown_guildId_fkey" FOREIGN KEY ("guildId") REFERENCES "Guild" ("id") ON DELETE RESTRICT ON UPDATE CASCADE, CONSTRAINT "Cooldown_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User" ("id") ON DELETE RESTRICT ON UPDATE CASCADE ); -INSERT INTO "new_Cooldown" ("cooldown", "createdAt", "guildId", "timeoutId", "updatedAt", "userId") SELECT "cooldown", "createdAt", "guildId", "timeoutId", "updatedAt", "userId" FROM "Cooldown"; + +INSERT INTO "new_Cooldown" ("cooldown", "createdAt", "guildId", "timeoutId", "updatedAt", "userId") +SELECT + "cooldown", + "createdAt", + "guildId", + "timeoutId", + "updatedAt", + "userId" +FROM + "Cooldown"; + DROP TABLE "Cooldown"; + ALTER TABLE "new_Cooldown" RENAME TO "Cooldown"; -CREATE UNIQUE INDEX "Cooldown_guildId_userId_timeoutId_key" ON "Cooldown"("guildId", "userId", "timeoutId"); + +CREATE UNIQUE INDEX "Cooldown_guildId_userId_timeoutId_key" ON "Cooldown" ("guildId", "userId", "timeoutId"); + PRAGMA foreign_key_check; -PRAGMA foreign_keys=ON; + +PRAGMA foreign_keys = ON; + diff --git a/prisma/migrations/20221020111948_audits_module/migration.sql b/prisma/migrations/20221020111948_audits_module/migration.sql index 46db9e6..b1b6293 100644 --- a/prisma/migrations/20221020111948_audits_module/migration.sql +++ b/prisma/migrations/20221020111948_audits_module/migration.sql @@ -1,5 +1,6 @@ -- RedefineTables -PRAGMA foreign_keys=OFF; +PRAGMA foreign_keys = OFF; + CREATE TABLE "new_Guild" ( "id" TEXT NOT NULL, "embedColorSuccess" TEXT NOT NULL DEFAULT '#22bb33', @@ -7,30 +8,64 @@ CREATE TABLE "new_Guild" ( "embedColorError" TEXT NOT NULL DEFAULT '#bb2124', "embedFooterText" TEXT NOT NULL DEFAULT 'https://github.com/ZynerOrg/xyter', "embedFooterIcon" TEXT NOT NULL DEFAULT 'https://github.com/ZynerOrg.png', - "creditsEnabled" BOOLEAN NOT NULL DEFAULT false, + "creditsEnabled" BOOLEAN NOT NULL DEFAULT FALSE, "creditsRate" INTEGER NOT NULL DEFAULT 1, "creditsTimeout" INTEGER NOT NULL DEFAULT 5, "creditsWorkRate" INTEGER NOT NULL DEFAULT 25, "creditsWorkTimeout" INTEGER NOT NULL DEFAULT 86400, "creditsMinimumLength" INTEGER NOT NULL DEFAULT 5, - "pointsEnabled" BOOLEAN NOT NULL DEFAULT false, + "pointsEnabled" BOOLEAN NOT NULL DEFAULT FALSE, "pointsRate" INTEGER NOT NULL DEFAULT 1, "pointsTimeout" INTEGER NOT NULL DEFAULT 5, "pointsMinimumLength" INTEGER NOT NULL DEFAULT 5, - "reputationsEnabled" BOOLEAN NOT NULL DEFAULT false, - "countersEnabled" BOOLEAN NOT NULL DEFAULT false, + "reputationsEnabled" BOOLEAN NOT NULL DEFAULT FALSE, + "countersEnabled" BOOLEAN NOT NULL DEFAULT FALSE, "apiCpggUrlIv" TEXT, "apiCpggUrlContent" TEXT, "apiCpggTokenIv" TEXT, "apiCpggTokenContent" TEXT, - "auditsEnabled" BOOLEAN NOT NULL DEFAULT false, + "auditsEnabled" BOOLEAN NOT NULL DEFAULT FALSE, "auditsChannelId" TEXT, "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, "updatedAt" DATETIME NOT NULL ); -INSERT INTO "new_Guild" ("apiCpggTokenContent", "apiCpggTokenIv", "apiCpggUrlContent", "apiCpggUrlIv", "countersEnabled", "createdAt", "creditsEnabled", "creditsMinimumLength", "creditsRate", "creditsTimeout", "creditsWorkRate", "creditsWorkTimeout", "embedColorError", "embedColorSuccess", "embedColorWait", "embedFooterIcon", "embedFooterText", "id", "pointsEnabled", "pointsMinimumLength", "pointsRate", "pointsTimeout", "reputationsEnabled", "updatedAt") SELECT "apiCpggTokenContent", "apiCpggTokenIv", "apiCpggUrlContent", "apiCpggUrlIv", "countersEnabled", "createdAt", "creditsEnabled", "creditsMinimumLength", "creditsRate", "creditsTimeout", "creditsWorkRate", "creditsWorkTimeout", "embedColorError", "embedColorSuccess", "embedColorWait", "embedFooterIcon", "embedFooterText", "id", "pointsEnabled", "pointsMinimumLength", "pointsRate", "pointsTimeout", "reputationsEnabled", "updatedAt" FROM "Guild"; + +INSERT INTO "new_Guild" ("apiCpggTokenContent", "apiCpggTokenIv", "apiCpggUrlContent", "apiCpggUrlIv", "countersEnabled", "createdAt", "creditsEnabled", "creditsMinimumLength", "creditsRate", "creditsTimeout", "creditsWorkRate", "creditsWorkTimeout", "embedColorError", "embedColorSuccess", "embedColorWait", "embedFooterIcon", "embedFooterText", "id", "pointsEnabled", "pointsMinimumLength", "pointsRate", "pointsTimeout", "reputationsEnabled", "updatedAt") +SELECT + "apiCpggTokenContent", + "apiCpggTokenIv", + "apiCpggUrlContent", + "apiCpggUrlIv", + "countersEnabled", + "createdAt", + "creditsEnabled", + "creditsMinimumLength", + "creditsRate", + "creditsTimeout", + "creditsWorkRate", + "creditsWorkTimeout", + "embedColorError", + "embedColorSuccess", + "embedColorWait", + "embedFooterIcon", + "embedFooterText", + "id", + "pointsEnabled", + "pointsMinimumLength", + "pointsRate", + "pointsTimeout", + "reputationsEnabled", + "updatedAt" +FROM + "Guild"; + DROP TABLE "Guild"; + ALTER TABLE "new_Guild" RENAME TO "Guild"; -CREATE UNIQUE INDEX "Guild_id_key" ON "Guild"("id"); + +CREATE UNIQUE INDEX "Guild_id_key" ON "Guild" ("id"); + PRAGMA foreign_key_check; -PRAGMA foreign_keys=ON; + +PRAGMA foreign_keys = ON; + diff --git a/prisma/migrations/20221020113312_shop_module/migration.sql b/prisma/migrations/20221020113312_shop_module/migration.sql index 12a71d6..14cd966 100644 --- a/prisma/migrations/20221020113312_shop_module/migration.sql +++ b/prisma/migrations/20221020113312_shop_module/migration.sql @@ -1,5 +1,6 @@ -- RedefineTables -PRAGMA foreign_keys=OFF; +PRAGMA foreign_keys = OFF; + CREATE TABLE "new_Guild" ( "id" TEXT NOT NULL, "embedColorSuccess" TEXT NOT NULL DEFAULT '#22bb33', @@ -7,32 +8,68 @@ CREATE TABLE "new_Guild" ( "embedColorError" TEXT NOT NULL DEFAULT '#bb2124', "embedFooterText" TEXT NOT NULL DEFAULT 'https://github.com/ZynerOrg/xyter', "embedFooterIcon" TEXT NOT NULL DEFAULT 'https://github.com/ZynerOrg.png', - "creditsEnabled" BOOLEAN NOT NULL DEFAULT false, + "creditsEnabled" BOOLEAN NOT NULL DEFAULT FALSE, "creditsRate" INTEGER NOT NULL DEFAULT 1, "creditsTimeout" INTEGER NOT NULL DEFAULT 5, "creditsWorkRate" INTEGER NOT NULL DEFAULT 25, "creditsWorkTimeout" INTEGER NOT NULL DEFAULT 86400, "creditsMinimumLength" INTEGER NOT NULL DEFAULT 5, - "pointsEnabled" BOOLEAN NOT NULL DEFAULT false, + "pointsEnabled" BOOLEAN NOT NULL DEFAULT FALSE, "pointsRate" INTEGER NOT NULL DEFAULT 1, "pointsTimeout" INTEGER NOT NULL DEFAULT 5, "pointsMinimumLength" INTEGER NOT NULL DEFAULT 5, - "reputationsEnabled" BOOLEAN NOT NULL DEFAULT false, - "countersEnabled" BOOLEAN NOT NULL DEFAULT false, + "reputationsEnabled" BOOLEAN NOT NULL DEFAULT FALSE, + "countersEnabled" BOOLEAN NOT NULL DEFAULT FALSE, "apiCpggUrlIv" TEXT, "apiCpggUrlContent" TEXT, "apiCpggTokenIv" TEXT, "apiCpggTokenContent" TEXT, - "auditsEnabled" BOOLEAN NOT NULL DEFAULT false, + "auditsEnabled" BOOLEAN NOT NULL DEFAULT FALSE, "auditsChannelId" TEXT, - "shopRolesEnabled" BOOLEAN NOT NULL DEFAULT false, + "shopRolesEnabled" BOOLEAN NOT NULL DEFAULT FALSE, "shopRolesPricePerHour" INTEGER NOT NULL DEFAULT 5, "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, "updatedAt" DATETIME NOT NULL ); -INSERT INTO "new_Guild" ("apiCpggTokenContent", "apiCpggTokenIv", "apiCpggUrlContent", "apiCpggUrlIv", "auditsChannelId", "auditsEnabled", "countersEnabled", "createdAt", "creditsEnabled", "creditsMinimumLength", "creditsRate", "creditsTimeout", "creditsWorkRate", "creditsWorkTimeout", "embedColorError", "embedColorSuccess", "embedColorWait", "embedFooterIcon", "embedFooterText", "id", "pointsEnabled", "pointsMinimumLength", "pointsRate", "pointsTimeout", "reputationsEnabled", "updatedAt") SELECT "apiCpggTokenContent", "apiCpggTokenIv", "apiCpggUrlContent", "apiCpggUrlIv", "auditsChannelId", "auditsEnabled", "countersEnabled", "createdAt", "creditsEnabled", "creditsMinimumLength", "creditsRate", "creditsTimeout", "creditsWorkRate", "creditsWorkTimeout", "embedColorError", "embedColorSuccess", "embedColorWait", "embedFooterIcon", "embedFooterText", "id", "pointsEnabled", "pointsMinimumLength", "pointsRate", "pointsTimeout", "reputationsEnabled", "updatedAt" FROM "Guild"; + +INSERT INTO "new_Guild" ("apiCpggTokenContent", "apiCpggTokenIv", "apiCpggUrlContent", "apiCpggUrlIv", "auditsChannelId", "auditsEnabled", "countersEnabled", "createdAt", "creditsEnabled", "creditsMinimumLength", "creditsRate", "creditsTimeout", "creditsWorkRate", "creditsWorkTimeout", "embedColorError", "embedColorSuccess", "embedColorWait", "embedFooterIcon", "embedFooterText", "id", "pointsEnabled", "pointsMinimumLength", "pointsRate", "pointsTimeout", "reputationsEnabled", "updatedAt") +SELECT + "apiCpggTokenContent", + "apiCpggTokenIv", + "apiCpggUrlContent", + "apiCpggUrlIv", + "auditsChannelId", + "auditsEnabled", + "countersEnabled", + "createdAt", + "creditsEnabled", + "creditsMinimumLength", + "creditsRate", + "creditsTimeout", + "creditsWorkRate", + "creditsWorkTimeout", + "embedColorError", + "embedColorSuccess", + "embedColorWait", + "embedFooterIcon", + "embedFooterText", + "id", + "pointsEnabled", + "pointsMinimumLength", + "pointsRate", + "pointsTimeout", + "reputationsEnabled", + "updatedAt" +FROM + "Guild"; + DROP TABLE "Guild"; + ALTER TABLE "new_Guild" RENAME TO "Guild"; -CREATE UNIQUE INDEX "Guild_id_key" ON "Guild"("id"); + +CREATE UNIQUE INDEX "Guild_id_key" ON "Guild" ("id"); + PRAGMA foreign_key_check; -PRAGMA foreign_keys=ON; + +PRAGMA foreign_keys = ON; + diff --git a/prisma/migrations/20221020113704_welcome_module/migration.sql b/prisma/migrations/20221020113704_welcome_module/migration.sql index c69df84..0c55776 100644 --- a/prisma/migrations/20221020113704_welcome_module/migration.sql +++ b/prisma/migrations/20221020113704_welcome_module/migration.sql @@ -1,5 +1,6 @@ -- RedefineTables -PRAGMA foreign_keys=OFF; +PRAGMA foreign_keys = OFF; + CREATE TABLE "new_Guild" ( "id" TEXT NOT NULL, "embedColorSuccess" TEXT NOT NULL DEFAULT '#22bb33', @@ -7,35 +8,73 @@ CREATE TABLE "new_Guild" ( "embedColorError" TEXT NOT NULL DEFAULT '#bb2124', "embedFooterText" TEXT NOT NULL DEFAULT 'https://github.com/ZynerOrg/xyter', "embedFooterIcon" TEXT NOT NULL DEFAULT 'https://github.com/ZynerOrg.png', - "creditsEnabled" BOOLEAN NOT NULL DEFAULT false, + "creditsEnabled" BOOLEAN NOT NULL DEFAULT FALSE, "creditsRate" INTEGER NOT NULL DEFAULT 1, "creditsTimeout" INTEGER NOT NULL DEFAULT 5, "creditsWorkRate" INTEGER NOT NULL DEFAULT 25, "creditsWorkTimeout" INTEGER NOT NULL DEFAULT 86400, "creditsMinimumLength" INTEGER NOT NULL DEFAULT 5, - "pointsEnabled" BOOLEAN NOT NULL DEFAULT false, + "pointsEnabled" BOOLEAN NOT NULL DEFAULT FALSE, "pointsRate" INTEGER NOT NULL DEFAULT 1, "pointsTimeout" INTEGER NOT NULL DEFAULT 5, "pointsMinimumLength" INTEGER NOT NULL DEFAULT 5, - "reputationsEnabled" BOOLEAN NOT NULL DEFAULT false, - "countersEnabled" BOOLEAN NOT NULL DEFAULT false, + "reputationsEnabled" BOOLEAN NOT NULL DEFAULT FALSE, + "countersEnabled" BOOLEAN NOT NULL DEFAULT FALSE, "apiCpggUrlIv" TEXT, "apiCpggUrlContent" TEXT, "apiCpggTokenIv" TEXT, "apiCpggTokenContent" TEXT, - "auditsEnabled" BOOLEAN NOT NULL DEFAULT false, + "auditsEnabled" BOOLEAN NOT NULL DEFAULT FALSE, "auditsChannelId" TEXT, - "shopRolesEnabled" BOOLEAN NOT NULL DEFAULT false, + "shopRolesEnabled" BOOLEAN NOT NULL DEFAULT FALSE, "shopRolesPricePerHour" INTEGER NOT NULL DEFAULT 5, - "welcomeEnabled" BOOLEAN NOT NULL DEFAULT false, + "welcomeEnabled" BOOLEAN NOT NULL DEFAULT FALSE, "welcomeJoinChannelId" TEXT, "welcomejoinChannelMessahe" TEXT, "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, "updatedAt" DATETIME NOT NULL ); -INSERT INTO "new_Guild" ("apiCpggTokenContent", "apiCpggTokenIv", "apiCpggUrlContent", "apiCpggUrlIv", "auditsChannelId", "auditsEnabled", "countersEnabled", "createdAt", "creditsEnabled", "creditsMinimumLength", "creditsRate", "creditsTimeout", "creditsWorkRate", "creditsWorkTimeout", "embedColorError", "embedColorSuccess", "embedColorWait", "embedFooterIcon", "embedFooterText", "id", "pointsEnabled", "pointsMinimumLength", "pointsRate", "pointsTimeout", "reputationsEnabled", "shopRolesEnabled", "shopRolesPricePerHour", "updatedAt") SELECT "apiCpggTokenContent", "apiCpggTokenIv", "apiCpggUrlContent", "apiCpggUrlIv", "auditsChannelId", "auditsEnabled", "countersEnabled", "createdAt", "creditsEnabled", "creditsMinimumLength", "creditsRate", "creditsTimeout", "creditsWorkRate", "creditsWorkTimeout", "embedColorError", "embedColorSuccess", "embedColorWait", "embedFooterIcon", "embedFooterText", "id", "pointsEnabled", "pointsMinimumLength", "pointsRate", "pointsTimeout", "reputationsEnabled", "shopRolesEnabled", "shopRolesPricePerHour", "updatedAt" FROM "Guild"; + +INSERT INTO "new_Guild" ("apiCpggTokenContent", "apiCpggTokenIv", "apiCpggUrlContent", "apiCpggUrlIv", "auditsChannelId", "auditsEnabled", "countersEnabled", "createdAt", "creditsEnabled", "creditsMinimumLength", "creditsRate", "creditsTimeout", "creditsWorkRate", "creditsWorkTimeout", "embedColorError", "embedColorSuccess", "embedColorWait", "embedFooterIcon", "embedFooterText", "id", "pointsEnabled", "pointsMinimumLength", "pointsRate", "pointsTimeout", "reputationsEnabled", "shopRolesEnabled", "shopRolesPricePerHour", "updatedAt") +SELECT + "apiCpggTokenContent", + "apiCpggTokenIv", + "apiCpggUrlContent", + "apiCpggUrlIv", + "auditsChannelId", + "auditsEnabled", + "countersEnabled", + "createdAt", + "creditsEnabled", + "creditsMinimumLength", + "creditsRate", + "creditsTimeout", + "creditsWorkRate", + "creditsWorkTimeout", + "embedColorError", + "embedColorSuccess", + "embedColorWait", + "embedFooterIcon", + "embedFooterText", + "id", + "pointsEnabled", + "pointsMinimumLength", + "pointsRate", + "pointsTimeout", + "reputationsEnabled", + "shopRolesEnabled", + "shopRolesPricePerHour", + "updatedAt" +FROM + "Guild"; + DROP TABLE "Guild"; + ALTER TABLE "new_Guild" RENAME TO "Guild"; -CREATE UNIQUE INDEX "Guild_id_key" ON "Guild"("id"); + +CREATE UNIQUE INDEX "Guild_id_key" ON "Guild" ("id"); + PRAGMA foreign_key_check; -PRAGMA foreign_keys=ON; + +PRAGMA foreign_keys = ON; + diff --git a/prisma/migrations/20221020113756_welcome_module_correction/migration.sql b/prisma/migrations/20221020113756_welcome_module_correction/migration.sql index f6817b0..d2e95ac 100644 --- a/prisma/migrations/20221020113756_welcome_module_correction/migration.sql +++ b/prisma/migrations/20221020113756_welcome_module_correction/migration.sql @@ -1,11 +1,12 @@ /* - Warnings: + Warnings: - - You are about to drop the column `welcomejoinChannelMessahe` on the `Guild` table. All the data in the column will be lost. - -*/ + - You are about to drop the column `welcomejoinChannelMessahe` on the `Guild` table. All the data in the column will be lost. + */ -- RedefineTables -PRAGMA foreign_keys=OFF; + +PRAGMA foreign_keys = OFF; + CREATE TABLE "new_Guild" ( "id" TEXT NOT NULL, "embedColorSuccess" TEXT NOT NULL DEFAULT '#22bb33', @@ -13,27 +14,27 @@ CREATE TABLE "new_Guild" ( "embedColorError" TEXT NOT NULL DEFAULT '#bb2124', "embedFooterText" TEXT NOT NULL DEFAULT 'https://github.com/ZynerOrg/xyter', "embedFooterIcon" TEXT NOT NULL DEFAULT 'https://github.com/ZynerOrg.png', - "creditsEnabled" BOOLEAN NOT NULL DEFAULT false, + "creditsEnabled" BOOLEAN NOT NULL DEFAULT FALSE, "creditsRate" INTEGER NOT NULL DEFAULT 1, "creditsTimeout" INTEGER NOT NULL DEFAULT 5, "creditsWorkRate" INTEGER NOT NULL DEFAULT 25, "creditsWorkTimeout" INTEGER NOT NULL DEFAULT 86400, "creditsMinimumLength" INTEGER NOT NULL DEFAULT 5, - "pointsEnabled" BOOLEAN NOT NULL DEFAULT false, + "pointsEnabled" BOOLEAN NOT NULL DEFAULT FALSE, "pointsRate" INTEGER NOT NULL DEFAULT 1, "pointsTimeout" INTEGER NOT NULL DEFAULT 5, "pointsMinimumLength" INTEGER NOT NULL DEFAULT 5, - "reputationsEnabled" BOOLEAN NOT NULL DEFAULT false, - "countersEnabled" BOOLEAN NOT NULL DEFAULT false, + "reputationsEnabled" BOOLEAN NOT NULL DEFAULT FALSE, + "countersEnabled" BOOLEAN NOT NULL DEFAULT FALSE, "apiCpggUrlIv" TEXT, "apiCpggUrlContent" TEXT, "apiCpggTokenIv" TEXT, "apiCpggTokenContent" TEXT, - "auditsEnabled" BOOLEAN NOT NULL DEFAULT false, + "auditsEnabled" BOOLEAN NOT NULL DEFAULT FALSE, "auditsChannelId" TEXT, - "shopRolesEnabled" BOOLEAN NOT NULL DEFAULT false, + "shopRolesEnabled" BOOLEAN NOT NULL DEFAULT FALSE, "shopRolesPricePerHour" INTEGER NOT NULL DEFAULT 5, - "welcomeEnabled" BOOLEAN NOT NULL DEFAULT false, + "welcomeEnabled" BOOLEAN NOT NULL DEFAULT FALSE, "welcomeJoinChannelId" TEXT, "welcomeJoinChannelMessahe" TEXT, "welcomeLeaveChannelId" TEXT, @@ -41,9 +42,49 @@ CREATE TABLE "new_Guild" ( "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, "updatedAt" DATETIME NOT NULL ); -INSERT INTO "new_Guild" ("apiCpggTokenContent", "apiCpggTokenIv", "apiCpggUrlContent", "apiCpggUrlIv", "auditsChannelId", "auditsEnabled", "countersEnabled", "createdAt", "creditsEnabled", "creditsMinimumLength", "creditsRate", "creditsTimeout", "creditsWorkRate", "creditsWorkTimeout", "embedColorError", "embedColorSuccess", "embedColorWait", "embedFooterIcon", "embedFooterText", "id", "pointsEnabled", "pointsMinimumLength", "pointsRate", "pointsTimeout", "reputationsEnabled", "shopRolesEnabled", "shopRolesPricePerHour", "updatedAt", "welcomeEnabled", "welcomeJoinChannelId") SELECT "apiCpggTokenContent", "apiCpggTokenIv", "apiCpggUrlContent", "apiCpggUrlIv", "auditsChannelId", "auditsEnabled", "countersEnabled", "createdAt", "creditsEnabled", "creditsMinimumLength", "creditsRate", "creditsTimeout", "creditsWorkRate", "creditsWorkTimeout", "embedColorError", "embedColorSuccess", "embedColorWait", "embedFooterIcon", "embedFooterText", "id", "pointsEnabled", "pointsMinimumLength", "pointsRate", "pointsTimeout", "reputationsEnabled", "shopRolesEnabled", "shopRolesPricePerHour", "updatedAt", "welcomeEnabled", "welcomeJoinChannelId" FROM "Guild"; + +INSERT INTO "new_Guild" ("apiCpggTokenContent", "apiCpggTokenIv", "apiCpggUrlContent", "apiCpggUrlIv", "auditsChannelId", "auditsEnabled", "countersEnabled", "createdAt", "creditsEnabled", "creditsMinimumLength", "creditsRate", "creditsTimeout", "creditsWorkRate", "creditsWorkTimeout", "embedColorError", "embedColorSuccess", "embedColorWait", "embedFooterIcon", "embedFooterText", "id", "pointsEnabled", "pointsMinimumLength", "pointsRate", "pointsTimeout", "reputationsEnabled", "shopRolesEnabled", "shopRolesPricePerHour", "updatedAt", "welcomeEnabled", "welcomeJoinChannelId") +SELECT + "apiCpggTokenContent", + "apiCpggTokenIv", + "apiCpggUrlContent", + "apiCpggUrlIv", + "auditsChannelId", + "auditsEnabled", + "countersEnabled", + "createdAt", + "creditsEnabled", + "creditsMinimumLength", + "creditsRate", + "creditsTimeout", + "creditsWorkRate", + "creditsWorkTimeout", + "embedColorError", + "embedColorSuccess", + "embedColorWait", + "embedFooterIcon", + "embedFooterText", + "id", + "pointsEnabled", + "pointsMinimumLength", + "pointsRate", + "pointsTimeout", + "reputationsEnabled", + "shopRolesEnabled", + "shopRolesPricePerHour", + "updatedAt", + "welcomeEnabled", + "welcomeJoinChannelId" +FROM + "Guild"; + DROP TABLE "Guild"; + ALTER TABLE "new_Guild" RENAME TO "Guild"; -CREATE UNIQUE INDEX "Guild_id_key" ON "Guild"("id"); + +CREATE UNIQUE INDEX "Guild_id_key" ON "Guild" ("id"); + PRAGMA foreign_key_check; -PRAGMA foreign_keys=ON; + +PRAGMA foreign_keys = ON; + diff --git a/prisma/migrations/20221020113831_welcome_module_correction/migration.sql b/prisma/migrations/20221020113831_welcome_module_correction/migration.sql index 5ee06ca..191112f 100644 --- a/prisma/migrations/20221020113831_welcome_module_correction/migration.sql +++ b/prisma/migrations/20221020113831_welcome_module_correction/migration.sql @@ -1,11 +1,12 @@ /* - Warnings: + Warnings: - - You are about to drop the column `welcomeJoinChannelMessahe` on the `Guild` table. All the data in the column will be lost. - -*/ + - You are about to drop the column `welcomeJoinChannelMessahe` on the `Guild` table. All the data in the column will be lost. + */ -- RedefineTables -PRAGMA foreign_keys=OFF; + +PRAGMA foreign_keys = OFF; + CREATE TABLE "new_Guild" ( "id" TEXT NOT NULL, "embedColorSuccess" TEXT NOT NULL DEFAULT '#22bb33', @@ -13,27 +14,27 @@ CREATE TABLE "new_Guild" ( "embedColorError" TEXT NOT NULL DEFAULT '#bb2124', "embedFooterText" TEXT NOT NULL DEFAULT 'https://github.com/ZynerOrg/xyter', "embedFooterIcon" TEXT NOT NULL DEFAULT 'https://github.com/ZynerOrg.png', - "creditsEnabled" BOOLEAN NOT NULL DEFAULT false, + "creditsEnabled" BOOLEAN NOT NULL DEFAULT FALSE, "creditsRate" INTEGER NOT NULL DEFAULT 1, "creditsTimeout" INTEGER NOT NULL DEFAULT 5, "creditsWorkRate" INTEGER NOT NULL DEFAULT 25, "creditsWorkTimeout" INTEGER NOT NULL DEFAULT 86400, "creditsMinimumLength" INTEGER NOT NULL DEFAULT 5, - "pointsEnabled" BOOLEAN NOT NULL DEFAULT false, + "pointsEnabled" BOOLEAN NOT NULL DEFAULT FALSE, "pointsRate" INTEGER NOT NULL DEFAULT 1, "pointsTimeout" INTEGER NOT NULL DEFAULT 5, "pointsMinimumLength" INTEGER NOT NULL DEFAULT 5, - "reputationsEnabled" BOOLEAN NOT NULL DEFAULT false, - "countersEnabled" BOOLEAN NOT NULL DEFAULT false, + "reputationsEnabled" BOOLEAN NOT NULL DEFAULT FALSE, + "countersEnabled" BOOLEAN NOT NULL DEFAULT FALSE, "apiCpggUrlIv" TEXT, "apiCpggUrlContent" TEXT, "apiCpggTokenIv" TEXT, "apiCpggTokenContent" TEXT, - "auditsEnabled" BOOLEAN NOT NULL DEFAULT false, + "auditsEnabled" BOOLEAN NOT NULL DEFAULT FALSE, "auditsChannelId" TEXT, - "shopRolesEnabled" BOOLEAN NOT NULL DEFAULT false, + "shopRolesEnabled" BOOLEAN NOT NULL DEFAULT FALSE, "shopRolesPricePerHour" INTEGER NOT NULL DEFAULT 5, - "welcomeEnabled" BOOLEAN NOT NULL DEFAULT false, + "welcomeEnabled" BOOLEAN NOT NULL DEFAULT FALSE, "welcomeJoinChannelId" TEXT, "welcomeJoinChannelMessage" TEXT, "welcomeLeaveChannelId" TEXT, @@ -41,9 +42,51 @@ CREATE TABLE "new_Guild" ( "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, "updatedAt" DATETIME NOT NULL ); -INSERT INTO "new_Guild" ("apiCpggTokenContent", "apiCpggTokenIv", "apiCpggUrlContent", "apiCpggUrlIv", "auditsChannelId", "auditsEnabled", "countersEnabled", "createdAt", "creditsEnabled", "creditsMinimumLength", "creditsRate", "creditsTimeout", "creditsWorkRate", "creditsWorkTimeout", "embedColorError", "embedColorSuccess", "embedColorWait", "embedFooterIcon", "embedFooterText", "id", "pointsEnabled", "pointsMinimumLength", "pointsRate", "pointsTimeout", "reputationsEnabled", "shopRolesEnabled", "shopRolesPricePerHour", "updatedAt", "welcomeEnabled", "welcomeJoinChannelId", "welcomeLeaveChannelId", "welcomeLeaveChannelMessage") SELECT "apiCpggTokenContent", "apiCpggTokenIv", "apiCpggUrlContent", "apiCpggUrlIv", "auditsChannelId", "auditsEnabled", "countersEnabled", "createdAt", "creditsEnabled", "creditsMinimumLength", "creditsRate", "creditsTimeout", "creditsWorkRate", "creditsWorkTimeout", "embedColorError", "embedColorSuccess", "embedColorWait", "embedFooterIcon", "embedFooterText", "id", "pointsEnabled", "pointsMinimumLength", "pointsRate", "pointsTimeout", "reputationsEnabled", "shopRolesEnabled", "shopRolesPricePerHour", "updatedAt", "welcomeEnabled", "welcomeJoinChannelId", "welcomeLeaveChannelId", "welcomeLeaveChannelMessage" FROM "Guild"; + +INSERT INTO "new_Guild" ("apiCpggTokenContent", "apiCpggTokenIv", "apiCpggUrlContent", "apiCpggUrlIv", "auditsChannelId", "auditsEnabled", "countersEnabled", "createdAt", "creditsEnabled", "creditsMinimumLength", "creditsRate", "creditsTimeout", "creditsWorkRate", "creditsWorkTimeout", "embedColorError", "embedColorSuccess", "embedColorWait", "embedFooterIcon", "embedFooterText", "id", "pointsEnabled", "pointsMinimumLength", "pointsRate", "pointsTimeout", "reputationsEnabled", "shopRolesEnabled", "shopRolesPricePerHour", "updatedAt", "welcomeEnabled", "welcomeJoinChannelId", "welcomeLeaveChannelId", "welcomeLeaveChannelMessage") +SELECT + "apiCpggTokenContent", + "apiCpggTokenIv", + "apiCpggUrlContent", + "apiCpggUrlIv", + "auditsChannelId", + "auditsEnabled", + "countersEnabled", + "createdAt", + "creditsEnabled", + "creditsMinimumLength", + "creditsRate", + "creditsTimeout", + "creditsWorkRate", + "creditsWorkTimeout", + "embedColorError", + "embedColorSuccess", + "embedColorWait", + "embedFooterIcon", + "embedFooterText", + "id", + "pointsEnabled", + "pointsMinimumLength", + "pointsRate", + "pointsTimeout", + "reputationsEnabled", + "shopRolesEnabled", + "shopRolesPricePerHour", + "updatedAt", + "welcomeEnabled", + "welcomeJoinChannelId", + "welcomeLeaveChannelId", + "welcomeLeaveChannelMessage" +FROM + "Guild"; + DROP TABLE "Guild"; + ALTER TABLE "new_Guild" RENAME TO "Guild"; -CREATE UNIQUE INDEX "Guild_id_key" ON "Guild"("id"); + +CREATE UNIQUE INDEX "Guild_id_key" ON "Guild" ("id"); + PRAGMA foreign_key_check; -PRAGMA foreign_keys=ON; + +PRAGMA foreign_keys = ON; + From f1ddaf7df98b9279de7c2c8201ca43473dd4c89a Mon Sep 17 00:00:00 2001 From: "Restyled.io" Date: Fri, 21 Oct 2022 10:19:54 +0000 Subject: [PATCH 2/2] Restyled by whitespace --- prisma/migrations/20221019063840_init/migration.sql | 1 - prisma/migrations/20221019064232_init/migration.sql | 1 - prisma/migrations/20221019081114_modules/migration.sql | 1 - prisma/migrations/20221019081816_modules/migration.sql | 1 - prisma/migrations/20221019113258_modules/migration.sql | 1 - prisma/migrations/20221019114543_modules/migration.sql | 1 - prisma/migrations/20221019142757_modules/migration.sql | 1 - prisma/migrations/20221019153247_cooldowns/migration.sql | 1 - prisma/migrations/20221019153652_audit_dates/migration.sql | 1 - prisma/migrations/20221019172846_embedconfig/migration.sql | 1 - prisma/migrations/20221020081238_cpgg_api/migration.sql | 1 - prisma/migrations/20221020084750_cooldown_string/migration.sql | 1 - prisma/migrations/20221020084922_cooldown_int/migration.sql | 1 - prisma/migrations/20221020111948_audits_module/migration.sql | 1 - prisma/migrations/20221020113312_shop_module/migration.sql | 1 - prisma/migrations/20221020113704_welcome_module/migration.sql | 1 - .../20221020113756_welcome_module_correction/migration.sql | 1 - .../20221020113831_welcome_module_correction/migration.sql | 1 - prisma/migrations/migration_lock.toml | 2 +- 19 files changed, 1 insertion(+), 19 deletions(-) diff --git a/prisma/migrations/20221019063840_init/migration.sql b/prisma/migrations/20221019063840_init/migration.sql index d69499d..d7577f0 100644 --- a/prisma/migrations/20221019063840_init/migration.sql +++ b/prisma/migrations/20221019063840_init/migration.sql @@ -27,4 +27,3 @@ CREATE UNIQUE INDEX "User_id_key" ON "User" ("id"); -- CreateIndex CREATE UNIQUE INDEX "GuildMember_userId_guildId_key" ON "GuildMember" ("userId", "guildId"); - diff --git a/prisma/migrations/20221019064232_init/migration.sql b/prisma/migrations/20221019064232_init/migration.sql index 27ed6aa..2028506 100644 --- a/prisma/migrations/20221019064232_init/migration.sql +++ b/prisma/migrations/20221019064232_init/migration.sql @@ -24,4 +24,3 @@ CREATE UNIQUE INDEX "GuildMember_userId_guildId_key" ON "GuildMember" ("userId", PRAGMA foreign_key_check; PRAGMA foreign_keys = ON; - diff --git a/prisma/migrations/20221019081114_modules/migration.sql b/prisma/migrations/20221019081114_modules/migration.sql index 9ebd925..d20c517 100644 --- a/prisma/migrations/20221019081114_modules/migration.sql +++ b/prisma/migrations/20221019081114_modules/migration.sql @@ -69,4 +69,3 @@ PRAGMA foreign_keys = ON; -- CreateIndex CREATE UNIQUE INDEX "GuildCounter_guildId_channelId_key" ON "GuildCounter" ("guildId", "channelId"); - diff --git a/prisma/migrations/20221019081816_modules/migration.sql b/prisma/migrations/20221019081816_modules/migration.sql index 4cba8c4..d2fcde5 100644 --- a/prisma/migrations/20221019081816_modules/migration.sql +++ b/prisma/migrations/20221019081816_modules/migration.sql @@ -33,4 +33,3 @@ CREATE UNIQUE INDEX "GuildCounter_guildId_channelId_key" ON "GuildCounter" ("gui PRAGMA foreign_key_check; PRAGMA foreign_keys = ON; - diff --git a/prisma/migrations/20221019113258_modules/migration.sql b/prisma/migrations/20221019113258_modules/migration.sql index d88a0fb..a22b2a3 100644 --- a/prisma/migrations/20221019113258_modules/migration.sql +++ b/prisma/migrations/20221019113258_modules/migration.sql @@ -41,4 +41,3 @@ CREATE UNIQUE INDEX "Guild_id_key" ON "Guild" ("id"); PRAGMA foreign_key_check; PRAGMA foreign_keys = ON; - diff --git a/prisma/migrations/20221019114543_modules/migration.sql b/prisma/migrations/20221019114543_modules/migration.sql index d15916d..0d89d31 100644 --- a/prisma/migrations/20221019114543_modules/migration.sql +++ b/prisma/migrations/20221019114543_modules/migration.sql @@ -43,4 +43,3 @@ CREATE UNIQUE INDEX "Guild_id_key" ON "Guild" ("id"); PRAGMA foreign_key_check; PRAGMA foreign_keys = ON; - diff --git a/prisma/migrations/20221019142757_modules/migration.sql b/prisma/migrations/20221019142757_modules/migration.sql index e4bccc3..387fb6e 100644 --- a/prisma/migrations/20221019142757_modules/migration.sql +++ b/prisma/migrations/20221019142757_modules/migration.sql @@ -28,4 +28,3 @@ CREATE UNIQUE INDEX "GuildMember_userId_guildId_key" ON "GuildMember" ("userId", PRAGMA foreign_key_check; PRAGMA foreign_keys = ON; - diff --git a/prisma/migrations/20221019153247_cooldowns/migration.sql b/prisma/migrations/20221019153247_cooldowns/migration.sql index 58b4dff..b85f815 100644 --- a/prisma/migrations/20221019153247_cooldowns/migration.sql +++ b/prisma/migrations/20221019153247_cooldowns/migration.sql @@ -11,4 +11,3 @@ CREATE TABLE "Cooldown" ( -- CreateIndex CREATE UNIQUE INDEX "Cooldown_guildId_userId_timeoutId_key" ON "Cooldown" ("guildId", "userId", "timeoutId"); - diff --git a/prisma/migrations/20221019153652_audit_dates/migration.sql b/prisma/migrations/20221019153652_audit_dates/migration.sql index 0171217..fd40071 100644 --- a/prisma/migrations/20221019153652_audit_dates/migration.sql +++ b/prisma/migrations/20221019153652_audit_dates/migration.sql @@ -153,4 +153,3 @@ CREATE UNIQUE INDEX "GuildMember_userId_guildId_key" ON "GuildMember" ("userId", PRAGMA foreign_key_check; PRAGMA foreign_keys = ON; - diff --git a/prisma/migrations/20221019172846_embedconfig/migration.sql b/prisma/migrations/20221019172846_embedconfig/migration.sql index aeea219..f404f36 100644 --- a/prisma/migrations/20221019172846_embedconfig/migration.sql +++ b/prisma/migrations/20221019172846_embedconfig/migration.sql @@ -53,4 +53,3 @@ CREATE UNIQUE INDEX "Guild_id_key" ON "Guild" ("id"); PRAGMA foreign_key_check; PRAGMA foreign_keys = ON; - diff --git a/prisma/migrations/20221020081238_cpgg_api/migration.sql b/prisma/migrations/20221020081238_cpgg_api/migration.sql index c69d565..6b056d0 100644 --- a/prisma/migrations/20221020081238_cpgg_api/migration.sql +++ b/prisma/migrations/20221020081238_cpgg_api/migration.sql @@ -10,4 +10,3 @@ ALTER TABLE "Guild" ALTER TABLE "Guild" ADD COLUMN "apiCpggUrlIv" TEXT; - diff --git a/prisma/migrations/20221020084750_cooldown_string/migration.sql b/prisma/migrations/20221020084750_cooldown_string/migration.sql index 20f0bf5..a9521a5 100644 --- a/prisma/migrations/20221020084750_cooldown_string/migration.sql +++ b/prisma/migrations/20221020084750_cooldown_string/migration.sql @@ -32,4 +32,3 @@ CREATE UNIQUE INDEX "Cooldown_guildId_userId_timeoutId_key" ON "Cooldown" ("guil PRAGMA foreign_key_check; PRAGMA foreign_keys = ON; - diff --git a/prisma/migrations/20221020084922_cooldown_int/migration.sql b/prisma/migrations/20221020084922_cooldown_int/migration.sql index 282e7d1..822d410 100644 --- a/prisma/migrations/20221020084922_cooldown_int/migration.sql +++ b/prisma/migrations/20221020084922_cooldown_int/migration.sql @@ -38,4 +38,3 @@ CREATE UNIQUE INDEX "Cooldown_guildId_userId_timeoutId_key" ON "Cooldown" ("guil PRAGMA foreign_key_check; PRAGMA foreign_keys = ON; - diff --git a/prisma/migrations/20221020111948_audits_module/migration.sql b/prisma/migrations/20221020111948_audits_module/migration.sql index b1b6293..c44d8b6 100644 --- a/prisma/migrations/20221020111948_audits_module/migration.sql +++ b/prisma/migrations/20221020111948_audits_module/migration.sql @@ -68,4 +68,3 @@ CREATE UNIQUE INDEX "Guild_id_key" ON "Guild" ("id"); PRAGMA foreign_key_check; PRAGMA foreign_keys = ON; - diff --git a/prisma/migrations/20221020113312_shop_module/migration.sql b/prisma/migrations/20221020113312_shop_module/migration.sql index 14cd966..8cdbd73 100644 --- a/prisma/migrations/20221020113312_shop_module/migration.sql +++ b/prisma/migrations/20221020113312_shop_module/migration.sql @@ -72,4 +72,3 @@ CREATE UNIQUE INDEX "Guild_id_key" ON "Guild" ("id"); PRAGMA foreign_key_check; PRAGMA foreign_keys = ON; - diff --git a/prisma/migrations/20221020113704_welcome_module/migration.sql b/prisma/migrations/20221020113704_welcome_module/migration.sql index 0c55776..7d5c6c5 100644 --- a/prisma/migrations/20221020113704_welcome_module/migration.sql +++ b/prisma/migrations/20221020113704_welcome_module/migration.sql @@ -77,4 +77,3 @@ CREATE UNIQUE INDEX "Guild_id_key" ON "Guild" ("id"); PRAGMA foreign_key_check; PRAGMA foreign_keys = ON; - diff --git a/prisma/migrations/20221020113756_welcome_module_correction/migration.sql b/prisma/migrations/20221020113756_welcome_module_correction/migration.sql index d2e95ac..1035421 100644 --- a/prisma/migrations/20221020113756_welcome_module_correction/migration.sql +++ b/prisma/migrations/20221020113756_welcome_module_correction/migration.sql @@ -87,4 +87,3 @@ CREATE UNIQUE INDEX "Guild_id_key" ON "Guild" ("id"); PRAGMA foreign_key_check; PRAGMA foreign_keys = ON; - diff --git a/prisma/migrations/20221020113831_welcome_module_correction/migration.sql b/prisma/migrations/20221020113831_welcome_module_correction/migration.sql index 191112f..0c05518 100644 --- a/prisma/migrations/20221020113831_welcome_module_correction/migration.sql +++ b/prisma/migrations/20221020113831_welcome_module_correction/migration.sql @@ -89,4 +89,3 @@ CREATE UNIQUE INDEX "Guild_id_key" ON "Guild" ("id"); PRAGMA foreign_key_check; PRAGMA foreign_keys = ON; - diff --git a/prisma/migrations/migration_lock.toml b/prisma/migrations/migration_lock.toml index e5e5c47..6fcf33d 100644 --- a/prisma/migrations/migration_lock.toml +++ b/prisma/migrations/migration_lock.toml @@ -1,3 +1,3 @@ # Please do not edit this file manually # It should be added in your version-control system (i.e. Git) -provider = "sqlite" \ No newline at end of file +provider = "sqlite"