mirror of
https://github.com/standardebooks/web.git
synced 2025-07-21 14:55:13 -04:00
Switch from EbookPlaceholder.Status to EbookPlaceholder.IsInProgress, and some type tweaks
This commit is contained in:
parent
1a742baa51
commit
e56de4b19d
8 changed files with 56 additions and 39 deletions
|
@ -1,10 +1,10 @@
|
|||
CREATE TABLE IF NOT EXISTS `EbookPlaceholders` (
|
||||
`EbookId` int(10) unsigned NOT NULL,
|
||||
`YearPublished` smallint unsigned NULL,
|
||||
`Status` enum('wanted', 'in_progress') NULL,
|
||||
`Difficulty` enum('beginner', 'intermediate', 'advanced') NULL,
|
||||
`TranscriptionUrl` varchar(511) NULL,
|
||||
`IsWanted` boolean NOT NULL DEFAULT FALSE,
|
||||
`IsInProgress` boolean NOT NULL DEFAULT FALSE,
|
||||
`IsPatron` boolean NOT NULL DEFAULT FALSE,
|
||||
`Notes` TEXT NULL DEFAULT NULL,
|
||||
PRIMARY KEY (`EbookId`)
|
||||
|
|
16
config/sql/se/Projects.sql
Normal file
16
config/sql/se/Projects.sql
Normal file
|
@ -0,0 +1,16 @@
|
|||
CREATE TABLE IF NOT EXISTS `Projects` (
|
||||
`ProjectId` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
||||
`Status` enum('in_progress','stalled','completed','abandoned') NOT NULL DEFAULT 'in_progress',
|
||||
`EbookId` int(11) NOT NULL,
|
||||
`ProducerName` varchar(151) DEFAULT NULL,
|
||||
`ProducerEmail` varchar(80) DEFAULT NULL,
|
||||
`DiscussionUrl` varchar(255) DEFAULT NULL,
|
||||
`VcsUrl` varchar(255) NOT NULL,
|
||||
`Created` timestamp NOT NULL DEFAULT current_timestamp(),
|
||||
`Updated` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
|
||||
`Started` datetime NOT NULL,
|
||||
`Ended` datetime DEFAULT NULL,
|
||||
`ManagerUserId` int(11) NOT NULL,
|
||||
`ReviewerUserId` int(11) NOT NULL,
|
||||
PRIMARY KEY (`ProjectId`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
|
Loading…
Add table
Add a link
Reference in a new issue