diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-11-27 09:47:21 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-11-27 19:40:53 +0100 |
commit | 74bb2cb8348d6794ed3a0e2ec94c8c9abdde82cf (patch) | |
tree | fdbc4ed5894f95b0bbdaa83a7f4c3a1e45c75ff6 /server/models | |
parent | df1966c9b48fd3cb3e0ec227bac97065d0122d78 (diff) | |
download | PeerTube-74bb2cb8348d6794ed3a0e2ec94c8c9abdde82cf.tar.gz PeerTube-74bb2cb8348d6794ed3a0e2ec94c8c9abdde82cf.tar.zst PeerTube-74bb2cb8348d6794ed3a0e2ec94c8c9abdde82cf.zip |
Add activitypub migration script
Diffstat (limited to 'server/models')
-rw-r--r-- | server/models/video/video-abuse.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/models/video/video-abuse.ts b/server/models/video/video-abuse.ts index e8f4f9a67..d09f5f7a1 100644 --- a/server/models/video/video-abuse.ts +++ b/server/models/video/video-abuse.ts | |||
@@ -99,7 +99,7 @@ function associate (models) { | |||
99 | VideoAbuse.belongsTo(models.Account, { | 99 | VideoAbuse.belongsTo(models.Account, { |
100 | foreignKey: { | 100 | foreignKey: { |
101 | name: 'reporterAccountId', | 101 | name: 'reporterAccountId', |
102 | allowNull: true | 102 | allowNull: false |
103 | }, | 103 | }, |
104 | onDelete: 'CASCADE' | 104 | onDelete: 'CASCADE' |
105 | }) | 105 | }) |