aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers/migrations
diff options
context:
space:
mode:
Diffstat (limited to 'server/initializers/migrations')
-rw-r--r--server/initializers/migrations/0130-video-channel-actor.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/initializers/migrations/0130-video-channel-actor.ts b/server/initializers/migrations/0130-video-channel-actor.ts
index 72a0daef7..0b665b0c7 100644
--- a/server/initializers/migrations/0130-video-channel-actor.ts
+++ b/server/initializers/migrations/0130-video-channel-actor.ts
@@ -167,12 +167,12 @@ async function up (utils: {
167 167
168 const query1 = `UPDATE "actorFollow" 168 const query1 = `UPDATE "actorFollow"
169 SET "actorId" = 169 SET "actorId" =
170 (SELECT "actorId" FROM account WHERE id = "actorFollow"."actorId")` 170 (SELECT "account"."actorId" FROM account WHERE "account"."id" = "actorFollow"."actorId")`
171 await utils.sequelize.query(query1) 171 await utils.sequelize.query(query1)
172 172
173 const query2 = `UPDATE "actorFollow" 173 const query2 = `UPDATE "actorFollow"
174 SET "targetActorId" = 174 SET "targetActorId" =
175 (SELECT "actorId" FROM account WHERE id = "actorFollow"."actorId")` 175 (SELECT "account"."actorId" FROM account WHERE "account"."id" = "actorFollow"."targetActorId")`
176 176
177 await utils.sequelize.query(query2) 177 await utils.sequelize.query(query2)
178 } 178 }