mirror of
https://activitypub.software/TransFem-org/Sharkey.git
synced 2024-12-14 18:25:45 +01:00
25 lines
658 B
JavaScript
25 lines
658 B
JavaScript
/*
|
|
* SPDX-FileCopyrightText: amelia and other Sharkey contributors
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
*/
|
|
|
|
export class AddLbToUser1691264431000 {
|
|
name = "AddLbToUser1691264431000";
|
|
|
|
async up(queryRunner) {
|
|
await queryRunner.query(`
|
|
ALTER TABLE "user_profile"
|
|
ADD "listenbrainz" character varying(128) NULL
|
|
`);
|
|
await queryRunner.query(`
|
|
COMMENT ON COLUMN "user_profile"."listenbrainz"
|
|
IS 'listenbrainz username to fetch currently playing.'
|
|
`);
|
|
}
|
|
|
|
async down(queryRunner) {
|
|
await queryRunner.query(`
|
|
ALTER TABLE "user_profile" DROP COLUMN "listenbrainz"
|
|
`);
|
|
}
|
|
}
|