Add primary keys to multiple tables

I missed these keys when creating the initial schema, and it's a useful practice.
This commit is contained in:
Mike Colagrosso 2024-05-01 00:41:22 -06:00 committed by Alex Cabal
parent 032032b920
commit 79daa82bf4
5 changed files with 10 additions and 0 deletions

View file

@ -1,5 +1,7 @@
CREATE TABLE `TocEntries` (
`TocEntryId` int(10) unsigned NOT NULL AUTO_INCREMENT,
`EbookId` int(10) unsigned NOT NULL,
`TocEntry` text NOT NULL,
PRIMARY KEY (`TocEntryId`),
KEY `index1` (`EbookId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;