Skip to content

Commit

Permalink
cascade
Browse files Browse the repository at this point in the history
  • Loading branch information
Arnaud AMBROSELLI committed Nov 17, 2023
1 parent ce43136 commit 27d52f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/src/db/migrations/20231117084743-new-table-userLog.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ module.exports = {
"debugApp" jsonb,
"debugDashboard" jsonb,
PRIMARY KEY (_id),
CONSTRAINT "UserLog_organisation_fkey" FOREIGN KEY (organisation) REFERENCES mano."Organisation"(_id),
CONSTRAINT "UserLog_user_fkey" FOREIGN KEY ("user") REFERENCES mano."User"(_id)
CONSTRAINT "UserLog_organisation_fkey" FOREIGN KEY (organisation) REFERENCES mano."Organisation"(_id) ON UPDATE CASCADE ON DELETE CASCADE DEFERRABLE,
CONSTRAINT "UserLog_user_fkey" FOREIGN KEY ("user") REFERENCES mano."User"(_id) ON UPDATE CASCADE ON DELETE CASCADE DEFERRABLE
);
CREATE INDEX "UserLog_organisation_idx" ON mano."UserLog" USING btree (organisation);
CREATE INDEX "UserLog_user_idx" ON mano."UserLog" USING btree ("user");
Expand Down

0 comments on commit 27d52f1

Please sign in to comment.