You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- The values [SecurityConcern] on the enum `ReportReason` will be removed. If these variants are still used in the database, this will fail.
5
+
- The primary key for the `CommentReport` table will be changed. If it partially fails, the table could be left without primary key constraint.
6
+
- You are about to drop the column `createdAt` on the `CommentReport` table. All the data in the column will be lost.
7
+
- You are about to drop the column `id` on the `CommentReport` table. All the data in the column will be lost.
8
+
- You are about to drop the column `reason` on the `CommentReport` table. All the data in the column will be lost.
9
+
- You are about to drop the column `userId` on the `CommentReport` table. All the data in the column will be lost.
10
+
- The primary key for the `ModelReport` table will be changed. If it partially fails, the table could be left without primary key constraint.
11
+
- You are about to drop the column `createdAt` on the `ModelReport` table. All the data in the column will be lost.
12
+
- You are about to drop the column `details` on the `ModelReport` table. All the data in the column will be lost.
13
+
- You are about to drop the column `id` on the `ModelReport` table. All the data in the column will be lost.
14
+
- You are about to drop the column `reason` on the `ModelReport` table. All the data in the column will be lost.
15
+
- You are about to drop the column `reviewedAt` on the `ModelReport` table. All the data in the column will be lost.
16
+
- You are about to drop the column `status` on the `ModelReport` table. All the data in the column will be lost.
17
+
- You are about to drop the column `userId` on the `ModelReport` table. All the data in the column will be lost.
18
+
- The primary key for the `ReviewReport` table will be changed. If it partially fails, the table could be left without primary key constraint.
19
+
- You are about to drop the column `createdAt` on the `ReviewReport` table. All the data in the column will be lost.
20
+
- You are about to drop the column `id` on the `ReviewReport` table. All the data in the column will be lost.
21
+
- You are about to drop the column `reason` on the `ReviewReport` table. All the data in the column will be lost.
22
+
- You are about to drop the column `userId` on the `ReviewReport` table. All the data in the column will be lost.
23
+
- A unique constraint covering the columns `[reportId]` on the table `CommentReport` will be added. If there are existing duplicate values, this will fail.
24
+
- A unique constraint covering the columns `[reportId]` on the table `ModelReport` will be added. If there are existing duplicate values, this will fail.
25
+
- A unique constraint covering the columns `[reportId]` on the table `ReviewReport` will be added. If there are existing duplicate values, this will fail.
26
+
- Added the required column `reportId` to the `CommentReport` table without a default value. This is not possible if the table is not empty.
27
+
- Added the required column `reportId` to the `ModelReport` table without a default value. This is not possible if the table is not empty.
28
+
- Added the required column `reportId` to the `ReviewReport` table without a default value. This is not possible if the table is not empty.
29
+
30
+
*/
31
+
-- AlterEnum
32
+
BEGIN;
33
+
CREATETYPE "ReportReason_new" AS ENUM ('TOSViolation', 'NSFW', 'Ownership', 'AdminAttention', 'Claim');
34
+
ALTERTABLE"Report" ALTER COLUMN "reason" TYPE "ReportReason_new" USING ("reason"::text::"ReportReason_new");
35
+
ALTERTYPE"ReportReason" RENAME TO "ReportReason_old";
36
+
ALTERTYPE"ReportReason_new" RENAME TO "ReportReason";
37
+
DROPTYPE"ReportReason_old";
38
+
COMMIT;
39
+
40
+
-- DropForeignKey
41
+
ALTERTABLE"CommentReport" DROP CONSTRAINT"CommentReport_commentId_fkey";
42
+
43
+
-- DropForeignKey
44
+
ALTERTABLE"CommentReport" DROP CONSTRAINT"CommentReport_userId_fkey";
45
+
46
+
-- DropForeignKey
47
+
ALTERTABLE"ModelReport" DROP CONSTRAINT"ModelReport_modelId_fkey";
48
+
49
+
-- DropForeignKey
50
+
ALTERTABLE"ModelReport" DROP CONSTRAINT"ModelReport_userId_fkey";
51
+
52
+
-- DropForeignKey
53
+
ALTERTABLE"ReviewReport" DROP CONSTRAINT"ReviewReport_reviewId_fkey";
54
+
55
+
-- DropForeignKey
56
+
ALTERTABLE"ReviewReport" DROP CONSTRAINT"ReviewReport_userId_fkey";
0 commit comments