diff --git a/prisma/migrations/20220806153942_/migration.sql b/prisma/migrations/20220806153942_/migration.sql new file mode 100644 index 0000000..066741c --- /dev/null +++ b/prisma/migrations/20220806153942_/migration.sql @@ -0,0 +1,14 @@ +/* + Warnings: + + - You are about to drop the column `balance` on the `User` table. All the data in the column will be lost. + - You are about to drop the column `lastDaily` on the `User` table. All the data in the column will be lost. + - You are about to drop the column `level` on the `User` table. All the data in the column will be lost. + - You are about to drop the column `xp` on the `User` table. All the data in the column will be lost. + +*/ +-- AlterTable +ALTER TABLE "User" DROP COLUMN "balance", +DROP COLUMN "lastDaily", +DROP COLUMN "level", +DROP COLUMN "xp"; diff --git a/prisma/migrations/20220806162141_verification_channel/migration.sql b/prisma/migrations/20220806162141_verification_channel/migration.sql new file mode 100644 index 0000000..3c49694 --- /dev/null +++ b/prisma/migrations/20220806162141_verification_channel/migration.sql @@ -0,0 +1,8 @@ +/* + Warnings: + + - Added the required column `channelId` to the `VerifyUnblock` table without a default value. This is not possible if the table is not empty. + +*/ +-- AlterTable +ALTER TABLE "Verify" ADD COLUMN "channelId" TEXT NOT NULL; diff --git a/prisma/migrations/20220806193317_verification_time/migration.sql b/prisma/migrations/20220806193317_verification_time/migration.sql new file mode 100644 index 0000000..6ea66f1 --- /dev/null +++ b/prisma/migrations/20220806193317_verification_time/migration.sql @@ -0,0 +1,10 @@ +/* + Warnings: + + - You are about to drop the column `time` on the `VerifyUnblock` table. All the data in the column will be lost. + +*/ +-- AlterTable +ALTER TABLE "Verify" DROP COLUMN "time", +ADD COLUMN "finishTime" TIMESTAMP(3), +ADD COLUMN "startTime" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP; diff --git a/prisma/migrations/20220806194157_verification_time/migration.sql b/prisma/migrations/20220806194157_verification_time/migration.sql new file mode 100644 index 0000000..576590b --- /dev/null +++ b/prisma/migrations/20220806194157_verification_time/migration.sql @@ -0,0 +1,3 @@ +-- AlterTable +ALTER TABLE "Verify" ADD COLUMN "joinTime" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, +ALTER COLUMN "startTime" DROP NOT NULL; diff --git a/prisma/migrations/20220806202004_change_id/migration.sql b/prisma/migrations/20220806202004_change_id/migration.sql new file mode 100644 index 0000000..d4fec5f --- /dev/null +++ b/prisma/migrations/20220806202004_change_id/migration.sql @@ -0,0 +1,14 @@ +/* + Warnings: + + - The primary key for the `VerifyUnblock` table will be changed. If it partially fails, the table could be left without primary key constraint. + - You are about to drop the column `channelId` on the `VerifyUnblock` table. All the data in the column will be lost. + +*/ +-- AlterTable +ALTER TABLE "Verify" DROP CONSTRAINT "Verify_pkey", +DROP COLUMN "channelId", +ALTER COLUMN "id" DROP DEFAULT, +ALTER COLUMN "id" SET DATA TYPE TEXT, +ADD CONSTRAINT "Verify_pkey" PRIMARY KEY ("id"); +DROP SEQUENCE "Verify_id_seq"; diff --git a/prisma/migrations/20220806203429_verify_date/migration.sql b/prisma/migrations/20220806203429_verify_date/migration.sql new file mode 100644 index 0000000..4c82c7e --- /dev/null +++ b/prisma/migrations/20220806203429_verify_date/migration.sql @@ -0,0 +1,2 @@ +-- AlterTable +ALTER TABLE "Verify" ALTER COLUMN "startTime" DROP DEFAULT; diff --git a/prisma/migrations/20220826220735_verification_info/migration.sql b/prisma/migrations/20220826220735_verification_info/migration.sql new file mode 100644 index 0000000..d613c76 --- /dev/null +++ b/prisma/migrations/20220826220735_verification_info/migration.sql @@ -0,0 +1,10 @@ +-- AlterTable +ALTER TABLE "Verify" ADD COLUMN "activist" BOOLEAN NOT NULL DEFAULT false, +ADD COLUMN "food" INTEGER, +ADD COLUMN "length" INTEGER, +ADD COLUMN "life" INTEGER, +ADD COLUMN "reason" INTEGER, +ADD COLUMN "reasoning" INTEGER, +ADD COLUMN "trusted" BOOLEAN NOT NULL DEFAULT false, +ADD COLUMN "vegCurious" BOOLEAN NOT NULL DEFAULT false, +ADD COLUMN "where" INTEGER; diff --git a/prisma/migrations/20220826221107_add_ver_convinced/migration.sql b/prisma/migrations/20220826221107_add_ver_convinced/migration.sql new file mode 100644 index 0000000..4ae2e1c --- /dev/null +++ b/prisma/migrations/20220826221107_add_ver_convinced/migration.sql @@ -0,0 +1,2 @@ +-- AlterTable +ALTER TABLE "Verify" ADD COLUMN "convinced" BOOLEAN NOT NULL DEFAULT false;