Bart Schuurmans
0795b4d171
Include Author aliases in Book search vector
2024-03-23 19:26:51 +01:00
Bart Schuurmans
2de35f3fc7
Calculate Author search vector with name and aliases
2024-03-23 19:26:51 +01:00
Bart Schuurmans
6a87713f9f
Recalculate all book search vectors after fixing the author trigger
2024-03-20 11:45:12 +01:00
Adeodato Simó
cceccd1ecf
Merge from main into 'trigger_migrations'
...
Conflicts:
requirements.txt
2024-03-17 21:54:15 -03:00
Mouse Reeve
8f537ef56a
Adds missing migration for Korean locale
2024-02-20 16:45:16 -08:00
Mouse Reeve
748c934986
Merge migrations upon merge migrations
2024-02-03 08:20:12 -08:00
Mouse Reeve
f7580c59a5
Merge branch 'main' into check-version-number
2024-02-03 08:19:46 -08:00
Mouse Reeve
4e2b8af147
Adds merge migration
2024-02-03 08:02:51 -08:00
Mouse Reeve
48f8ee57a6
Merge branch 'main' into check-version-number
2024-02-03 08:02:15 -08:00
Mouse Reeve
6d5752fb4e
Adds merge migration for page numbering fix
2024-02-03 07:40:23 -08:00
Mouse Reeve
37aa7ad2f6
Merge branch 'freeform-page-number' of github.com:WesleyAC/bookwyrm into WesleyAC-freeform-page-number
2024-02-03 07:38:02 -08:00
Hugh Rundle
d640e4ac96
disable user exports by default
...
- new setting to enable user exports defaults to False
- add setting to enable and disable user exports
- do not allow user exports when using s3 storage
- do not serve non-image files from /images/ (requires update to nginx settings)
- increase default file upload limit to 100MB to enable user exports to be imported (can be changed in .env)
2024-01-16 21:32:13 +11:00
Wesley Aptekar-Cassels
6cd2c91135
Allow page numbers to be text, instead of integers.
...
Fixes : #2640
2024-01-04 19:09:39 -05:00
Mouse Reeve
5509941aa4
Adds schedule-able task to check for version updates
2024-01-02 13:05:26 -08:00
Mouse Reeve
d6f7f76c4d
Removes outdated/unused version and updating code
...
I had the bright idea of creating this update script but it doesn't work
and hasn't been maintained, so it's just sitting there causing confusing
and requiring weird things to exist in other places.
Now, the unused `version` field can be removed and I can scrap the
management command for getting versions.
2024-01-02 11:37:01 -08:00
Mouse Reeve
2a85378456
Removes part of migration causing upgrade issues
2024-01-02 09:57:41 -08:00
Mouse Reeve
913a19c8f0
Formats migration file
2024-01-01 19:33:49 -08:00
Mouse Reeve
86d79f537a
Adds merge migration
2024-01-01 19:29:24 -08:00
Mouse Reeve
ca79cb1ca7
Merge pull request #3054 from bookwyrm-social/user-migration
...
User migration via export file
2024-01-01 19:04:43 -08:00
Mouse Reeve
47cdc14bc0
Update bookwyrm/migrations/0189_alter_user_preferred_language.py
...
Co-authored-by: Demid <grrrr@protonmail.com>
2023-12-17 06:54:39 -08:00
Mouse Reeve
5c0e159d43
Adds Ukranian locale and updates locales
2023-12-12 15:42:40 -08:00
Adeodato Simó
b5805accac
Minor improvements to bookwyrm_book trigger code
...
- do not COALESCE columns that cannot be NULL
- do not bring bookwyrm_book to author names JOIN
- add comments documenting the four steps
2023-11-25 21:49:15 -03:00
Adeodato Simó
9bcb5b80ea
Further simplify bookwyrm_author trigger
2023-11-25 18:13:40 -03:00
Adeodato Simó
8df408e07e
Define search_vector_trigger
via Book.Meta.triggers
2023-11-25 17:02:54 -03:00
Adeodato Simó
bcb3a343d4
Fix JOIN in author_search_vector_trigger
, add missing WHERE clause
2023-11-25 16:23:21 -03:00
Adeodato Simó
416a6caf2d
Define author_search_vector_trigger
via Author.Meta.triggers
...
Previously, triggers lived only in a particular migration file. With
this change, code for the triggers resides in the model, and their
lifecycle is managed through normal Django migrations.
2023-11-25 16:17:51 -03:00
Adeodato Simó
e4d688665c
Remove index for author.search_vector
, which is never used
2023-11-24 22:43:12 -03:00
Hugh Rundle
99a9a64708
notification type migration after merge
2023-11-24 06:50:32 +11:00
Hugh Rundle
72c1c6ee3d
merge migrations and lint
2023-11-22 21:29:54 +11:00
Hugh Rundle
0276c15948
Merge branch 'main' into user-migration
2023-11-22 21:00:04 +11:00
Mouse Reeve
c2742b4d80
Updates migrations
2023-11-20 10:02:49 -08:00
Mouse Reeve
cfe42305be
Merge branch 'main' into test-themes
2023-11-20 10:02:23 -08:00
Mouse Reeve
d828ba0bc6
Give admins option to test if a theme loads correctly
...
If a theme is uploaded incorrectly or has errors in it, users can still
select the theme but it will cause a 500 error on every page, making the
app unusable and also making it impossible for them to switch to a
functional theme.
A better fix would be to fail gracefully, but in lieu of that, this will
at least let admins confirm if a theme is broken safely.
2023-11-20 09:56:51 -08:00
Mouse Reeve
d94b27b723
Merge branch 'main' into user-migration
2023-11-19 19:18:22 -08:00
Adeodato Simó
8dbfba17d6
Merge from 'main' into stable_dates
2023-11-19 15:09:52 -03:00
Mouse Reeve
1a7a843dea
Re-creates migrations and removes failing test
...
I think the test was failing because it was extremely brittle, not
because of anything wrong with the code itself.
2023-11-15 17:08:15 -08:00
Mouse Reeve
62f985edb8
Merge branch 'main' into user-migration
2023-11-15 16:46:18 -08:00
Hugh Rundle
54ec5e2ae0
Fix migrations properly ( #3116 )
...
* Revert "fix migrations and linting"
This reverts commit 53e410627f
.
* really fix migrations
2023-11-15 19:54:16 +11:00
Adeodato Simó
01d4381898
Create notifications for incoming invite requests
...
Closes : #2066
2023-11-14 07:09:04 -03:00
Adeodato Simó
b81170c149
Add missing migration from #3099
2023-11-13 19:56:00 -03:00
Hugh Rundle
bbc78f03ae
fix DB migrations ( #3111 )
...
fix migrations and linting
2023-11-14 07:21:27 +11:00
Hugh Rundle
d5762f1d52
Merge branch 'main' into user-migration
2023-11-13 21:17:07 +11:00
Adeodato Simó
be9d92b1c2
Remove last references to "seal" in partial_date.py and migration
2023-11-09 14:00:45 -03:00
Adeodato Simó
2bb7652dfe
Update partial date migration to latest main
2023-11-09 14:00:22 -03:00
Adeodato Simó
e928027e16
Merge from main for up-to-date migrations
2023-11-09 14:00:14 -03:00
Mouse Reeve
ee6e3ed7eb
Adds a database field for is_deleted on user
2023-11-05 20:28:23 -08:00
Mouse Reeve
4de9907456
Adds migration tests
2023-11-05 09:26:49 -08:00
Mouse Reeve
61caeed5a3
Adds migration and more tests
2023-11-05 08:51:42 -08:00
Mouse Reeve
ff2bb513ed
Adds migration for notification types
2023-11-05 06:56:10 -08:00
Mouse Reeve
89b87db1c8
Adds merge migration
2023-11-05 06:54:29 -08:00