mirror of
https://github.com/standardebooks/web.git
synced 2025-07-06 06:40:33 -04:00
Remove primary key EbookSourceId
There is a one to many relationship between `Ebook` and `EbookSource`, and we don't query by `EbookSourceId`. We add a `SortOrder` column to keep the sources in the same order as specified in `content.opf`.
This commit is contained in:
parent
4e8ba5ddaa
commit
1076c9a77d
4 changed files with 19 additions and 9 deletions
7
lib/Exceptions/EbookSourceSortOrderRequiredException.php
Normal file
7
lib/Exceptions/EbookSourceSortOrderRequiredException.php
Normal file
|
@ -0,0 +1,7 @@
|
|||
<?
|
||||
namespace Exceptions;
|
||||
|
||||
class EbookSourceSortOrderRequiredException extends AppException{
|
||||
/** @var string $message */
|
||||
protected $message = 'EbookSource SortOrder required.';
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue