sharkey/packages/backend/migration/1618639857000-user-hide-online-status.js
ひたりん 299921d0b0 Merge pull request #37 from lqvp/master
アカウント作成時のデフォルトを変更
2024-10-20 23:17:25 +09:00

17 lines
502 B
JavaScript
Executable File

/*
* SPDX-FileCopyrightText: syuilo and misskey-project
* SPDX-License-Identifier: AGPL-3.0-only
*/
export class userHideOnlineStatus1618639857000 {
constructor() {
this.name = 'userHideOnlineStatus1618639857000';
}
async up(queryRunner) {
await queryRunner.query(`ALTER TABLE "user" ADD "hideOnlineStatus" boolean NOT NULL DEFAULT true`);
}
async down(queryRunner) {
await queryRunner.query(`ALTER TABLE "user" DROP COLUMN "hideOnlineStatus"`);
}
}