diff options
| author | syuilo <4439005+syuilo@users.noreply.github.com> | 2025-09-14 15:25:22 +0900 |
|---|---|---|
| committer | syuilo <4439005+syuilo@users.noreply.github.com> | 2025-09-14 15:25:22 +0900 |
| commit | 2621f468ff7f00c79f8df6500bf17fb75595928c (patch) | |
| tree | f7e0cbd858c5ac2479db4de66aadcb5b2cc69eb4 /packages/backend/migration | |
| parent | refactor(frontend): os.select, MkSelectのitem指定をオブジェクトに... (diff) | |
| download | misskey-2621f468ff7f00c79f8df6500bf17fb75595928c.tar.gz misskey-2621f468ff7f00c79f8df6500bf17fb75595928c.tar.bz2 misskey-2621f468ff7f00c79f8df6500bf17fb75595928c.zip | |
enhance: 広告ごとにセンシティブフラグを設定できるように
Diffstat (limited to 'packages/backend/migration')
| -rw-r--r-- | packages/backend/migration/1757823175259-sensitive-ad.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/packages/backend/migration/1757823175259-sensitive-ad.js b/packages/backend/migration/1757823175259-sensitive-ad.js new file mode 100644 index 0000000000..46f0f270ab --- /dev/null +++ b/packages/backend/migration/1757823175259-sensitive-ad.js @@ -0,0 +1,16 @@ +/* + * SPDX-FileCopyrightText: syuilo and misskey-project + * SPDX-License-Identifier: AGPL-3.0-only + */ + +export class SensitiveAd1757823175259 { + name = 'SensitiveAd1757823175259' + + async up(queryRunner) { + await queryRunner.query(`ALTER TABLE "ad" ADD "isSensitive" boolean NOT NULL DEFAULT false`); + } + + async down(queryRunner) { + await queryRunner.query(`ALTER TABLE "ad" DROP COLUMN "isSensitive"`); + } +} |