0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-22 02:18:39 +01:00

3.0 - add JSON1 SQLite compatibility requirements (#8433)

This commit is contained in:
LB (Ben Johnston) 2022-04-26 22:22:03 +10:00 committed by GitHub
parent f7c80e669e
commit 54daa01116
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View File

@ -84,7 +84,7 @@ Wagtail supports:
- Django 3.2.x and 4.0.x
- Python 3.7, 3.8, 3.9 and 3.10
- PostgreSQL, MySQL and SQLite as database backends
- PostgreSQL, MySQL and SQLite (with JSON1) as database backends
[Previous versions of Wagtail](https://docs.wagtail.org/en/stable/releases/upgrading.html#compatible-django-python-versions) additionally supported Python 2.7 and earlier Django versions.

View File

@ -160,6 +160,11 @@ References to `BASE_URL` in your settings should be updated to [`WAGTAILADMIN_BA
All uses of `StreamField` should be updated to include the argument `use_json_field=True`. After adding this, make sure to generate and run migrations. This converts the field to use `JSONField` as its internal type instead of `TextField`, which will allow you to use `JSONField` lookups and transforms on the field. This change is necessary to ensure that the database migration is applied; a future release will drop support for `TextField`-based StreamFields.
### SQLite now requires the `JSON1` extension enabled
Due to [`JSONField`](https://docs.djangoproject.com/en/stable/ref/models/fields/#django.db.models.JSONField) requirements, SQLite will only be supported with the JSON1 extension enabled.
See [Enabling JSON1 extension on SQLite](https://docs.djangoproject.com/en/stable/ref/databases/#sqlite-json1) and [JSON1 extension](https://www.sqlite.org/json1.html) for details.
## Upgrade considerations - deprecation of old functionality
### Removed support for Internet Explorer (IE11)