2023-10-09 08:46:05 +09:00
/ *
2023-10-12 15:45:25 +09:00
* SPDX - FileCopyrightText : syuilo and other misskey , cherrypick contributors
2023-10-09 08:46:05 +09:00
* SPDX - License - Identifier : AGPL - 3.0 - only
* /
export class UserListUserId1696807733453 {
name = 'UserListUserId1696807733453'
async up ( queryRunner ) {
await queryRunner . query ( ` ALTER TABLE "user_list_membership" ADD "userListUserId" character varying(32) NOT NULL DEFAULT '' ` ) ;
2023-10-21 04:47:06 +09:00
await queryRunner . query ( ` UPDATE "user_list_membership" SET "userListUserId" = "user_list"."userId" FROM "user_list" WHERE "user_list_membership"."userListId" = "user_list"."id" ` ) ;
2023-10-09 08:46:05 +09:00
}
async down ( queryRunner ) {
await queryRunner . query ( ` ALTER TABLE "user_list_membership" DROP COLUMN "userListUserId" ` ) ;
}
}