1
1
Fork 0
mirror of https://code.mensbeam.com/MensBeam/Arsse.git synced 2024-12-24 17:42:40 +00:00
Commit graph

30 commits

Author SHA1 Message Date
J. King
15a2e7fe0f Actually-last tests for schema upgrade 2022-09-27 16:32:46 -04:00
J. King
95d20f33c7 Last tests for schema upgrade 2022-09-27 11:17:06 -04:00
J. King
63e780b06d Tests for articles, with fixes
Related tables (categories, enclosures, label members) still need tests
2022-09-26 16:49:41 -04:00
J. King
e4a7e6622b Fix most problems with the new schema
Some issues remain with MySQL
2022-06-06 19:54:48 -04:00
J. King
bd728e3e12 New schema for MySQL 2022-05-30 16:57:13 -04:00
J. King
55012255bb New schema for PostgreSQL
This also address various omissions in the SQLite schema
2022-05-30 15:10:09 -04:00
J. King
86897af0b3 Add ability to enable scraper
Also transfer any existing scraper booleans on database upgrade. It was
previously possible to enable scraping manually by editing the database,
and these settings will be honoured.
2021-01-16 19:06:20 -05:00
J. King
4cb23dd198 Partial implementation of proper content scraping 2021-01-16 14:24:01 -05:00
J. King
d5cd5b6a17 Implement hidden marks
Tests are still needed
2020-12-15 13:20:03 -05:00
J. King
c43d0dcae3 Groundwork for filtering rules 2020-12-14 20:09:38 -05:00
J. King
5c83655541 Add modification timestamp to user metadata 2020-12-08 16:10:23 -05:00
J. King
978929aabd WIP redesign of user properties 2020-12-05 11:01:44 -05:00
J. King
e861cca53d Integrate schema change necessary for microsub 2020-11-06 11:06:27 -05:00
J. King
8f739cec85 Excluse empty-string URLs from icons table 2020-11-06 10:28:28 -05:00
J. King
2438f35f3d Add icon cache to database
Feed updating has not yet been adapted to store
icon data (nor their URLs anymore)
2020-11-04 18:34:22 -05:00
J. King
905f8938e2 Typo 2020-11-01 09:37:59 -05:00
J. King
16d2e01668 New schema for PostgreSQL and MySQL 2020-10-30 19:00:11 -04:00
J. King
b58a326461 Prepare for schema changes 2020-10-29 11:58:45 -04:00
J. King
794fb506a5 Widen URL field 2019-12-03 22:33:44 -05:00
J. King
737dd9f6b8 Fix foreign keys in MySQL 2019-12-01 15:00:28 -05:00
J. King
38bdde1167 Add access tokens to the db, with relevant code
Tokens are similar to sessions in that they stand in for users, but the
protocol handlers will manage them; Fever login hashes are the
originating use case for them. These must never expire, for example,
and we need to specify their values.

This commit also performs a bit of database clean-up
2019-03-09 16:23:56 -05:00
J. King
fb1bdbfb37 Database schema for subscription tags 2019-03-03 12:10:18 -05:00
J. King
50f92625ef Use PosgreSQL's existing general Unicode collation
All collations appear to be case-insensitive
2018-12-14 09:18:56 -05:00
J. King
0f48ce6f37 Use a Unicode collation for SQLite 2018-12-11 14:14:32 -05:00
J. King
8fc31cfc40 Rewrite various queries to work in PostgreSQL
This involved changes to the driver interface as well as the database
schemata. The most significantly altered queries were for article
selection and marking, which relied upon unusual features of SQLite.
Overall query efficiency should not be adversely affected (it may have
even imprved) in the common case, while very rare cases (not presently
triggered by any REST handlers) require more queries.

One notable benefit of these changes is that functions which query
articles can now have complete control over which columns are returned.
This has not, however, been implemented yet: symbolic column groups are
still used for now.

Note that PostgreSQL still fails many tests, but the test suite runs to
completion. Note also that one line of the Database class is not
covered; later changes will eventually make it easier to cover the line
in question.
2018-12-04 20:41:21 -05:00
J. King
10b228224d Correct PostgreSQL data format and other tweaks 2018-11-28 12:12:49 -05:00
J. King
d0db784b22 PostgreSQL schema tweak 2018-11-27 17:50:38 -05:00
J. King
dccd4caede Convert one database function test series (articles) to a common harness
Also revert the dropping of tables in the schema files. This was for the
convenience of tests, but the risk of data loss is too great
2018-11-24 23:18:17 -05:00
J. King
36c5984c47 Add drop statements to database schemata to simplify testing 2018-11-23 12:53:56 -05:00
J. King
c0c4810662 Nominally complete PostgreSQL driver
Connection error handling as well as uprade error handling still need
to be implemented.
2018-11-21 11:06:12 -05:00