feat(db): add previous migrations to git

This commit is contained in:
Anthony 2022-09-23 19:14:45 +01:00
parent 915f7d7048
commit 34dc689f94
8 changed files with 63 additions and 0 deletions

View File

@ -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";

View File

@ -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;

View File

@ -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;

View File

@ -0,0 +1,3 @@
-- AlterTable
ALTER TABLE "Verify" ADD COLUMN "joinTime" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
ALTER COLUMN "startTime" DROP NOT NULL;

View File

@ -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";

View File

@ -0,0 +1,2 @@
-- AlterTable
ALTER TABLE "Verify" ALTER COLUMN "startTime" DROP DEFAULT;

View File

@ -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;

View File

@ -0,0 +1,2 @@
-- AlterTable
ALTER TABLE "Verify" ADD COLUMN "convinced" BOOLEAN NOT NULL DEFAULT false;