Commit graph

2022 commits

Author SHA1 Message Date
Mike Colagrosso
79daa82bf4 Add primary keys to multiple tables
I missed these keys when creating the initial schema, and it's a useful practice.
2024-11-04 13:16:56 -06:00
Mike Colagrosso
032032b920 Additional Ebook validation 2024-11-04 13:16:56 -06:00
Mike Colagrosso
3ef1af1237 Add @throws to Ebook::GetByIdentifier 2024-11-04 13:16:56 -06:00
Mike Colagrosso
196f5ae573 Ebook::GetByIdentifier can't return null 2024-11-04 13:16:56 -06:00
Mike Colagrosso
572fd90fed Replace Library::GetEbookByIdentifier with Ebook::GetByIdentifier
The new method throws an exception instead of returning null.
2024-11-04 13:16:56 -06:00
Mike Colagrosso
7350891cd5 Spell out EbookSourceType values 2024-11-04 13:16:56 -06:00
Mike Colagrosso
f736c20e3b Fix error found by PHPStan
PHPStan doesn't think that Identifier can be null:

```
549    Strict comparison using === between string and null will always evaluate to false.
```
2024-11-04 13:16:56 -06:00
Mike Colagrosso
88b3ffd9ed Store EbookSourceType as a string/enum, not int 2024-11-04 13:16:56 -06:00
Mike Colagrosso
cc8de11ca4 Replace static GetOrCreate with GetByNameOrCreate 2024-11-04 13:16:56 -06:00
Mike Colagrosso
4a1a4efb24 Don't redine Name in LocSubject, already in Tag 2024-11-04 13:16:56 -06:00
Mike Colagrosso
1e0d591066 Set ebookWwwFilesystemPath default to null 2024-11-04 13:16:56 -06:00
Mike Colagrosso
8599dfcc09 Show both long and short flag options 2024-11-04 13:16:56 -06:00
Mike Colagrosso
254bf8b3d7 Put shell variable in quotes 2024-11-04 13:16:56 -06:00
Mike Colagrosso
41b130195f Change size checks (like bigger than 3 MB) to use TextSinglePageByteCount, not number and units 2024-11-04 13:16:56 -06:00
Mike Colagrosso
ccd73c7cb4 Initial script to insert/update Ebook records 2024-11-04 13:16:56 -06:00
Mike Colagrosso
63d411a2e6 Initial code changes to insert/update Ebook records 2024-11-04 13:16:56 -06:00
Mike Colagrosso
073f138c47 Initial Ebook DB schema 2024-11-04 13:16:56 -06:00
Alex Cabal
f97539f399 Redirect an artwork if it's found under an artist's alternate name. 2024-11-03 15:15:07 -06:00
Robin Whittleton
71c2dfc55b Add missing php-mysql to README
Without this the site can’t connect to the database.
2024-10-28 13:16:25 -05:00
Robin Whittleton
758cfc684b Update Dockerfile to work with MariaDB 2024-10-28 13:16:25 -05:00
Robin Whittleton
ef2356df99 Note that our newsletter sign-up page isn’t accessible 2024-10-28 11:12:14 -05:00
Hendrik
50bfb82a65 Add some spreadsheets and change links of others 2024-10-25 22:25:05 -05:00
erin
683117473d Add Nella Larsen Short Fiction spreadsheet 2024-10-25 11:44:05 -05:00
EmmaSweeney
35b4c2ce88 Correct figure in play how-to guide 2024-10-24 18:53:34 -04:00
Alex Cabal
88c3049d7a Change some datetime columns to timestamp 2024-10-24 16:37:09 -05:00
Alex Cabal
028c8237a5 Add short fiction spreadsheet 2024-10-24 12:31:01 -05:00
EmmaSweeney
8d70ef1be1 Update play how-to guide 2024-10-23 22:28:22 -04:00
Alex Cabal
82e43cb520 Add DB setup to readme 2024-10-23 11:09:16 -05:00
Alex Cabal
b6fbcaba26 Remove irrelevant user from SQL config 2024-10-22 22:47:56 -05:00
Anthony Ryan
4a8ebb411b Losslessly Optimize PNG images
By using Efficient-Compresion-Tool we can reduce image sizes by 762.25KB (5.72%)
without changing the visual appearance.
2024-10-22 15:40:59 -05:00
Alex Cabal
b83d04c265 Update wanted ebooks list 2024-10-21 15:47:04 -05:00
Alex Cabal
47a7945167 Don't print PDF URL when downloading scans 2024-10-21 15:33:53 -05:00
Alex Cabal
38fdd7c923 Update wanted ebooks list 2024-10-21 11:36:41 -05:00
Alex Cabal
ac6d8a2bf8 Fix incorrect link in spreadsheets page 2024-10-20 20:46:48 -05:00
Emma Sweeney
5b514a50b5
Update wanted ebooks list 2024-10-20 15:42:01 -04:00
partev
f901ee89e0 replace twitter.com with x.com 2024-10-19 12:21:19 -05:00
Alex Cabal
761f994ca8 Update wanted ebooks list 2024-10-18 11:48:37 -05:00
Alex Cabal
19cf14c1aa Add automatic donation drives 2024-10-17 11:58:25 -05:00
Ainsley Ellis
d8ed44e20e Normalise capitalisation of LoI 2024-10-16 14:21:44 -05:00
Ricardo Elisiário
790bb9f5dc Update report-errors.php 2024-10-16 11:01:08 -05:00
Ricardo Elisiário
f069320055 Update index.php 2024-10-16 11:00:36 -05:00
Ricardo Elisiário
b6b1d7c68b Update index.php 2024-10-16 11:00:21 -05:00
Ricardo Elisiário
2e2bd64a32 Update index.php 2024-10-16 11:00:07 -05:00
Alex Cabal
eec79712fc Use a NOW constant instead of new DateTimeImmutable objects, and tweak how some donation drive dates work 2024-10-15 22:21:12 -05:00
brendan
376dacd833 Remove Democracy and Social Ethics from wanted ebooks 2024-10-15 09:57:00 -05:00
Alex Cabal
3dbd9a1097 Add E. F. Benson spreadsheet to spreadsheets page 2024-10-14 21:14:08 -05:00
Alex Cabal
eb41b22e09 Update wanted ebooks list 2024-10-14 10:49:58 -05:00
Alex Cabal
77aa0cff4f Update wanted ebooks list 2024-10-11 12:50:36 -05:00
Alex Cabal
9fe6c6b64a Update wanted ebooks list 2024-10-09 17:06:52 -05:00
Alex Cabal
d0725da8f0 Update wanted ebooks list 2024-10-05 11:46:02 -05:00