diff options
author | Chocobozzz <me@florianbigard.com> | 2020-07-08 15:51:46 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2020-07-10 14:02:41 +0200 |
commit | 310b5219b38427f0c2c7ba57225afdd8f3064380 (patch) | |
tree | 853ff7e4e66425ca47b0999384eeb08ed14b28ff /server/initializers/migrations | |
parent | 811cef146c841ef8530bc812c05dfee77e0f2998 (diff) | |
download | PeerTube-310b5219b38427f0c2c7ba57225afdd8f3064380.tar.gz PeerTube-310b5219b38427f0c2c7ba57225afdd8f3064380.tar.zst PeerTube-310b5219b38427f0c2c7ba57225afdd8f3064380.zip |
Add new abuses tests
Diffstat (limited to 'server/initializers/migrations')
-rw-r--r-- | server/initializers/migrations/0520-abuses-split.ts | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/server/initializers/migrations/0520-abuses-split.ts b/server/initializers/migrations/0520-abuses-split.ts index 5898d501f..b02a21989 100644 --- a/server/initializers/migrations/0520-abuses-split.ts +++ b/server/initializers/migrations/0520-abuses-split.ts | |||
@@ -43,12 +43,10 @@ async function up (utils: { | |||
43 | await utils.sequelize.query(` | 43 | await utils.sequelize.query(` |
44 | CREATE TABLE IF NOT EXISTS "commentAbuse" ( | 44 | CREATE TABLE IF NOT EXISTS "commentAbuse" ( |
45 | "id" serial, | 45 | "id" serial, |
46 | "deletedComment" jsonb DEFAULT NULL, | ||
47 | "abuseId" integer NOT NULL REFERENCES "abuse" ("id") ON DELETE CASCADE ON UPDATE CASCADE, | 46 | "abuseId" integer NOT NULL REFERENCES "abuse" ("id") ON DELETE CASCADE ON UPDATE CASCADE, |
48 | "videoCommentId" integer REFERENCES "videoComment" ("id") ON DELETE SET NULL ON UPDATE CASCADE, | 47 | "videoCommentId" integer REFERENCES "videoComment" ("id") ON DELETE SET NULL ON UPDATE CASCADE, |
49 | "createdAt" timestamp WITH time zone NOT NULL, | 48 | "createdAt" timestamp WITH time zone NOT NULL, |
50 | "updatedAt" timestamp WITH time zone NOT NULL, | 49 | "updatedAt" timestamp WITH time zone NOT NULL, |
51 | "commentId" integer REFERENCES "videoComment" ("id") ON DELETE SET NULL ON UPDATE CASCADE, | ||
52 | PRIMARY KEY ("id") | 50 | PRIMARY KEY ("id") |
53 | ); | 51 | ); |
54 | `) | 52 | `) |