blob: aa012dd80b2e559279196fc37831ba69635979f1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
/*
Warnings:
- Added the required column `groupId` to the `Expense` table without a default value. This is not possible if the table is not empty.
*/
-- AlterTable
ALTER TABLE "Expense" ADD COLUMN "groupId" TEXT NOT NULL;
-- AddForeignKey
ALTER TABLE "Expense" ADD CONSTRAINT "Expense_groupId_fkey" FOREIGN KEY ("groupId") REFERENCES "Group"("id") ON DELETE RESTRICT ON UPDATE CASCADE;
|