feat(backend): Federated note update (#1)
(cherry picked from commit 6af23d4e28893b0ab253182153973bcad1210ac0)
This commit is contained in:
parent
5812b15cbd
commit
e9fda7dd1a
11 changed files with 534 additions and 44 deletions
12
packages/backend/migration/1696604572677-poll_vote_poll.js
Normal file
12
packages/backend/migration/1696604572677-poll_vote_poll.js
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
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"`);
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue