mirror of
https://github.com/standardebooks/web.git
synced 2025-07-15 02:46:46 -04:00
Ebook tags: Store UrlName so it can be queried
This commit is contained in:
parent
7339255d5f
commit
7d8cfd351e
3 changed files with 7 additions and 4 deletions
|
@ -1,8 +1,10 @@
|
|||
CREATE TABLE IF NOT EXISTS `Tags` (
|
||||
`TagId` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
||||
`Name` varchar(255) NOT NULL,
|
||||
`UrlName` varchar(255) NULL,
|
||||
`Type` enum('artwork', 'ebook') DEFAULT 'artwork',
|
||||
PRIMARY KEY (`TagId`),
|
||||
KEY `index1` (`Name`),
|
||||
KEY `index2` (`Type`)
|
||||
KEY `index2` (`Type`),
|
||||
KEY `index3` (`UrlName`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue