2024-06-15 03:36:55 -07:00
|
|
|
/*
|
|
|
|
* SPDX-FileCopyrightText: amelia and other Sharkey contributors
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
*/
|
|
|
|
|
2023-09-21 18:31:59 -07:00
|
|
|
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"
|
|
|
|
`);
|
|
|
|
}
|
2024-06-15 03:36:55 -07:00
|
|
|
}
|