upd: port Listenbrainz
This commit is contained in:
parent
57c37a8938
commit
113a67077e
9 changed files with 210 additions and 3 deletions
20
packages/backend/migration/1691264431000-add-lb-to-user.js
Normal file
20
packages/backend/migration/1691264431000-add-lb-to-user.js
Normal file
|
@ -0,0 +1,20 @@
|
|||
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"
|
||||
`);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue