Skip to content

Commit

Permalink
Add migration file
Browse files Browse the repository at this point in the history
  • Loading branch information
mmahdigh committed Nov 9, 2024
1 parent 503f677 commit 849704c
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
2 changes: 2 additions & 0 deletions prisma/migrations/20241031160035_/migration.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-- AlterTable
ALTER TABLE "User" ALTER COLUMN "budget" SET DEFAULT 1100000;
24 changes: 24 additions & 0 deletions src/flow/flow.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1277,5 +1277,29 @@ export class FlowController {
await this.prismaService.projectCoI.deleteMany({
where: { userId: userId },
});
await this.prismaService.budgetDelegation.findUnique({
where: { userId: userId },
});
await this.prismaService.collectionDelegation.deleteMany({
where: { userId: userId },
});
await this.prismaService.farcasterConnection.deleteMany({
where: { userId: userId },
});
await this.prismaService.share.deleteMany({
where: { userId: userId },
});
await this.prismaService.userAttestation.deleteMany({
where: { userId: userId },
});
await this.prismaService.userBudgetAttestation.deleteMany({
where: { userId: userId },
});
await this.prismaService.userCollectionFinish.deleteMany({
where: { userId: userId },
});
await this.prismaService.user.deleteMany({
where: { id: userId },
});
}
}

0 comments on commit 849704c

Please sign in to comment.