mirror of
https://github.com/veganhacktivists/arabot.git
synced 2025-05-18 17:34:13 +02:00
feat(db): add previous migrations to git
This commit is contained in:
parent
915f7d7048
commit
34dc689f94
14
prisma/migrations/20220806153942_/migration.sql
Normal file
14
prisma/migrations/20220806153942_/migration.sql
Normal 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";
|
@ -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;
|
@ -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;
|
@ -0,0 +1,3 @@
|
||||
-- AlterTable
|
||||
ALTER TABLE "Verify" ADD COLUMN "joinTime" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
ALTER COLUMN "startTime" DROP NOT NULL;
|
14
prisma/migrations/20220806202004_change_id/migration.sql
Normal file
14
prisma/migrations/20220806202004_change_id/migration.sql
Normal 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";
|
@ -0,0 +1,2 @@
|
||||
-- AlterTable
|
||||
ALTER TABLE "Verify" ALTER COLUMN "startTime" DROP DEFAULT;
|
@ -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;
|
@ -0,0 +1,2 @@
|
||||
-- AlterTable
|
||||
ALTER TABLE "Verify" ADD COLUMN "convinced" BOOLEAN NOT NULL DEFAULT false;
|
Loading…
x
Reference in New Issue
Block a user