mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-23 00:29:22 +09:00
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:
parent
dabe38a991
commit
699cbd0d77
@ -6,11 +6,11 @@
|
||||
export class RemotePublicReactionsSetFalse1723208290742 {
|
||||
name = 'RemotePublicReactionsSetFalse1723208290742'
|
||||
|
||||
public 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`);
|
||||
async up(queryRunner) {
|
||||
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
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user