summary refs log tree commit diff
path: root/util/src
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-08-21 20:00:35 +1000
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-08-21 20:00:35 +1000
commitc7767e5fa4f392cb06502fd928a977b10e404918 (patch)
tree92f67fcdbf3d1e38e82f61df7f95f22146e255bc /util/src
parentfosscord-server/pulls/858 (diff)
downloadserver-c7767e5fa4f392cb06502fd928a977b10e404918.tar.xz
Fix /users/@me/settings get and migrarion
Diffstat (limited to 'util/src')
-rw-r--r--util/src/migrations/1660689892073-mobileFixes2.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/util/src/migrations/1660689892073-mobileFixes2.ts b/util/src/migrations/1660689892073-mobileFixes2.ts

index 34328966..bd28694e 100644 --- a/util/src/migrations/1660689892073-mobileFixes2.ts +++ b/util/src/migrations/1660689892073-mobileFixes2.ts
@@ -8,9 +8,15 @@ export class mobileFixes21660689892073 implements MigrationInterface { ALTER TABLE \`user_settings\` ADD \`banner_color\` varchar(255) NULL `); + await queryRunner.query(` + UPDATE \`channels\` SET \`nsfw\` = 0 WHERE \`nsfw\` = NULL + `); await queryRunner.query(` ALTER TABLE \`channels\` CHANGE \`nsfw\` \`nsfw\` tinyint NOT NULL `); + await queryRunner.query(` + UPDATE \`guilds\` SET \`nsfw\` = 0 WHERE \`nsfw\` = NULL + `); await queryRunner.query(` ALTER TABLE \`guilds\` CHANGE \`nsfw\` \`nsfw\` tinyint NOT NULL `);