summaryrefslogtreecommitdiff
path: root/packages/backend/migration
diff options
context:
space:
mode:
authornullobsi <me@nullob.si>2022-02-05 23:02:48 -0800
committerGitHub <noreply@github.com>2022-02-06 16:02:48 +0900
commit3ff89fa7ecb643abf944ce966ffbf7f49000ca3f (patch)
treed0cc19173831e4f09e085c8bd805eb70c0e2ce1e /packages/backend/migration
parentFix cast (#8257) (diff)
downloadsharkey-3ff89fa7ecb643abf944ce966ffbf7f49000ca3f.tar.gz
sharkey-3ff89fa7ecb643abf944ce966ffbf7f49000ca3f.tar.bz2
sharkey-3ff89fa7ecb643abf944ce966ffbf7f49000ca3f.zip
feat: Option to show replies in timeline (rebase #7685) (#8202)
* Add an option for timeline replies. Credit to Emilis (puffaboo) * update db on request
Diffstat (limited to 'packages/backend/migration')
-rw-r--r--packages/backend/migration/1629833361000-AddShowTLReplies.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/packages/backend/migration/1629833361000-AddShowTLReplies.js b/packages/backend/migration/1629833361000-AddShowTLReplies.js
new file mode 100644
index 0000000000..bfd4ab7ff7
--- /dev/null
+++ b/packages/backend/migration/1629833361000-AddShowTLReplies.js
@@ -0,0 +1,15 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+class addShowTLReplies1629833361000 {
+ constructor() {
+ this.name = 'addShowTLReplies1629833361000';
+ }
+ async up(queryRunner) {
+ await queryRunner.query(`ALTER TABLE "user" ADD "showTimelineReplies" boolean NOT NULL DEFAULT false`);
+ await queryRunner.query(`COMMENT ON COLUMN "user"."showTimelineReplies" IS 'Whether to show users replying to other users in the timeline.'`);
+ }
+ async down(queryRunner) {
+ await queryRunner.query(`ALTER TABLE "user" DROP COLUMN "showTimelineReplies"`);
+ }
+}
+exports.addShowTLReplies1629833361000 = addShowTLReplies1629833361000;