mirror of
https://github.com/standardebooks/web.git
synced 2025-07-13 18:11:52 -04:00
Add PropertyFromHttp trait and update codebase to use new pattern
This commit is contained in:
parent
c35c47b793
commit
acb30b897c
47 changed files with 851 additions and 527 deletions
|
@ -7,7 +7,7 @@ CREATE TABLE IF NOT EXISTS `Artworks` (
|
|||
`CompletedYearIsCirca` boolean NOT NULL DEFAULT FALSE,
|
||||
`Created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
`Updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
|
||||
`Status` enum('unverified', 'approved', 'declined', 'in_use') DEFAULT 'unverified',
|
||||
`Status` enum('unverified', 'approved', 'declined', 'in_use') NOT NULL DEFAULT 'unverified',
|
||||
`SubmitterUserId` int(10) unsigned NULL,
|
||||
`ReviewerUserId` int(10) unsigned NULL,
|
||||
`MuseumUrl` varchar(255) NULL,
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
CREATE TABLE IF NOT EXISTS `EbookSources` (
|
||||
`EbookId` int(10) unsigned NOT NULL,
|
||||
`Type` enum('project_gutenberg', 'project_gutenberg_australia', 'project_gutenberg_canada', 'internet_archive', 'hathi_trust', 'wikisource', 'google_books', 'faded_page', 'other') DEFAULT 'other',
|
||||
`Type` enum('project_gutenberg', 'project_gutenberg_australia', 'project_gutenberg_canada', 'internet_archive', 'hathi_trust', 'wikisource', 'google_books', 'faded_page', 'other') NOT NULL DEFAULT 'other',
|
||||
`Url` varchar(255) NOT NULL,
|
||||
`SortOrder` tinyint(3) unsigned NOT NULL,
|
||||
KEY `index1` (`EbookId`)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue