mirror of
https://github.com/standardebooks/web.git
synced 2025-07-16 11:26:37 -04:00
Add a Type enum to Tags for artwork/ebook
This commit is contained in:
parent
ee29c526f8
commit
402dae95ff
7 changed files with 62 additions and 10 deletions
|
@ -1,6 +1,8 @@
|
|||
CREATE TABLE IF NOT EXISTS `Tags` (
|
||||
`TagId` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
||||
`Name` varchar(255) NOT NULL,
|
||||
`Type` enum('artwork', 'ebook') DEFAULT 'artwork',
|
||||
PRIMARY KEY (`TagId`),
|
||||
UNIQUE KEY `idxUnique` (`Name`)
|
||||
KEY `index1` (`Name`),
|
||||
KEY `index2` (`Type`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue