diff options
| author | nullobsi <me@nullob.si> | 2022-02-05 23:02:48 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-02-06 16:02:48 +0900 |
| commit | 3ff89fa7ecb643abf944ce966ffbf7f49000ca3f (patch) | |
| tree | d0cc19173831e4f09e085c8bd805eb70c0e2ce1e /packages/backend/migration | |
| parent | Fix cast (#8257) (diff) | |
| download | sharkey-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.js | 15 |
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; |