Skip to content

Commit

Permalink
Block duplicate urls
Browse files Browse the repository at this point in the history
  • Loading branch information
jzongker committed Jan 25, 2025
1 parent e5a955b commit 9e3e93b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/dbScripts/pages.mysql
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ CREATE TABLE `pages` (
`url` varchar(255) DEFAULT NULL,
`title` varchar(255) DEFAULT NULL,
`layout` varchar(45) DEFAULT NULL,
PRIMARY KEY (`id`)
PRIMARY KEY (`id`),
UNIQUE KEY `uq_churchId_url` (`churchId`,`url`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

0 comments on commit 9e3e93b

Please sign in to comment.