mirror of
https://github.com/kokonect-link/cherrypick
synced 2025-01-23 02:04:33 +09:00
18 lines
541 B
JavaScript
18 lines
541 B
JavaScript
/*
|
|
* SPDX-FileCopyrightText: syuilo and misskey-project & noridev and cherrypick-project
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
*/
|
|
|
|
export class PollVotePoll1696604572677 {
|
|
name = 'PollVotePoll1696604572677';
|
|
|
|
async up(queryRunner) {
|
|
await queryRunner.query(`ALTER TABLE "poll_vote" ADD CONSTRAINT "FK_poll_vote_poll" FOREIGN KEY ("noteId") REFERENCES "poll"("noteId") ON DELETE CASCADE`);
|
|
}
|
|
|
|
async down(queryRunner) {
|
|
await queryRunner.query(`ALTER TABLE "poll_vote" DROP CONSTRAINT "FK_poll_vote_poll"`);
|
|
}
|
|
|
|
}
|