mirror of
https://github.com/standardebooks/web.git
synced 2025-07-08 07:40:39 -04:00
Make MARC roles an enum and restructure how contributors are fetched from the DB to reduce queries
This commit is contained in:
parent
daf8e16ef4
commit
d6a2bdcbc8
8 changed files with 91 additions and 75 deletions
|
@ -4,7 +4,7 @@ CREATE TABLE IF NOT EXISTS `Contributors` (
|
|||
`UrlName` varchar(255) NOT NULL,
|
||||
`SortName` varchar(255) NULL,
|
||||
`WikipediaUrl` varchar(255) NULL,
|
||||
`MarcRole` varchar(10) NULL,
|
||||
`MarcRole` ENUM('aut', 'ctb', 'ill', 'trl') NOT NULL,
|
||||
`FullName` varchar(255) NULL,
|
||||
`NacoafUrl` varchar(255) NULL,
|
||||
`SortOrder` tinyint(3) unsigned NOT NULL,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue