mirror of
https://github.com/standardebooks/web.git
synced 2025-07-15 19:06:49 -04:00
Add database and ORM scaffolding
This commit is contained in:
parent
42ba2f8680
commit
9d923605d8
8 changed files with 278 additions and 0 deletions
|
@ -3,6 +3,13 @@
|
|||
use function Safe\define;
|
||||
use function Safe\strtotime;
|
||||
|
||||
const SITE_STATUS_LIVE = 'live';
|
||||
const SITE_STATUS_DEV = 'dev';
|
||||
define('SITE_STATUS', getenv('SITE_STATUS') ?: SITE_STATUS_DEV); // Set in the PHP FPM pool configuration. Have to use define() and not const so we can use a function.
|
||||
|
||||
const DATABASE_DEFAULT_DATABASE = 'se';
|
||||
const DATABASE_DEFAULT_HOST = 'localhost';
|
||||
|
||||
const EBOOKS_PER_PAGE = 12;
|
||||
const SORT_NEWEST = 'newest';
|
||||
const SORT_AUTHOR_ALPHA = 'author-alpha';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue