fix(backend): fix 1723208290742-remote-public-reactions-set-false.js

https://github.com/misskey-dev/misskey/pull/14383#pullrequestreview-2230486515

Co-authored-by: zyoshoka <107108195+zyoshoka@users.noreply.github.com>
This commit is contained in:
Daiki Mizukami 2024-08-10 00:34:29 +09:00
parent dabe38a991
commit 699cbd0d77
No known key found for this signature in database
GPG Key ID: 10478E598B944AA2

View File

@ -6,11 +6,11 @@
export class RemotePublicReactionsSetFalse1723208290742 { export class RemotePublicReactionsSetFalse1723208290742 {
name = 'RemotePublicReactionsSetFalse1723208290742' name = 'RemotePublicReactionsSetFalse1723208290742'
public async up(queryRunner) { async up(queryRunner) {
await queryRunner.query(`UPDATE "user_profile" SET "publicReactions" = FALSE FROM "users" WHERE "user_profile"."userId" = "user"."id" AND "user"."host" IS NULL`); await queryRunner.query(`UPDATE "user_profile" SET "publicReactions" = FALSE WHERE "userHost" IS NOT NULL`);
} }
public async down(queryRunner) { async down(queryRunner) {
// no valid down migration // no valid down migration
} }
} }