mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-12-05 04:33:08 +02:00
20 lines
542 B
JavaScript
20 lines
542 B
JavaScript
|
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"
|
||
|
`);
|
||
|
}
|
||
|
}
|