diff options
| author | syuilo <4439005+syuilo@users.noreply.github.com> | 2025-05-09 17:44:35 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-09 17:44:35 +0900 |
| commit | ebf291084f9490f0345a488592e2b4cd2ffb9d91 (patch) | |
| tree | 243df153ec60c16e495f344e9643bf0fc7668230 /packages/backend/migration | |
| parent | Feat: No websocket mode (#15851) (diff) | |
| download | misskey-ebf291084f9490f0345a488592e2b4cd2ffb9d91.tar.gz misskey-ebf291084f9490f0345a488592e2b4cd2ffb9d91.tar.bz2 misskey-ebf291084f9490f0345a488592e2b4cd2ffb9d91.zip | |
Feat: UGCの公開範囲設定機能 (#15938)
* wip
* Update CHANGELOG.md
* wip
* wip
* Update show.ts
Diffstat (limited to 'packages/backend/migration')
| -rw-r--r-- | packages/backend/migration/1746330901644-visibleUserGeneratedContentsForNonLoggedInVisitors.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/packages/backend/migration/1746330901644-visibleUserGeneratedContentsForNonLoggedInVisitors.js b/packages/backend/migration/1746330901644-visibleUserGeneratedContentsForNonLoggedInVisitors.js new file mode 100644 index 0000000000..115698a420 --- /dev/null +++ b/packages/backend/migration/1746330901644-visibleUserGeneratedContentsForNonLoggedInVisitors.js @@ -0,0 +1,16 @@ +/* + * SPDX-FileCopyrightText: syuilo and misskey-project + * SPDX-License-Identifier: AGPL-3.0-only + */ + +export class VisibleUserGeneratedContentsForNonLoggedInVisitors1746330901644 { + name = 'VisibleUserGeneratedContentsForNonLoggedInVisitors1746330901644' + + async up(queryRunner) { + await queryRunner.query(`ALTER TABLE "meta" ADD "ugcVisibilityForVisitor" character varying(128) NOT NULL DEFAULT 'local'`); + } + + async down(queryRunner) { + await queryRunner.query(`ALTER TABLE "meta" DROP COLUMN "ugcVisibilityForVisitor"`); + } +} |