kopia lustrzana https://github.com/wagtail/wagtail
![]() This fixes #6393 by modifying the constraint to use an IN condition which supports both Postgres and SQL Server. Previously, the `|` (OR) condition was only supported by Postgres because SQL Server only supports AND conditions. The implementation follows suggestions from @gasman in https://github.com/wagtail/wagtail/issues/6393#issuecomment-732161057: * Migration 0050 is modified to not break on SQL Server * Added migration 0060 to add or replace the constraint Additionally, this allows for and documents a `DATABASE_DRIVER` env variable to be set for testing, to allow a different SQL Server driver (e.g. FreeTDS on Mac/Linux); and adds the specific `host_is_server` option for FreeTDS (won't affect SQL Server Native Client on CI). |
||
---|---|---|
.. | ||
_static | ||
advanced_topics | ||
contributing | ||
editor_manual | ||
getting_started | ||
reference | ||
releases | ||
topics | ||
Makefile | ||
README.md | ||
autobuild.sh | ||
conf.py | ||
favicon.ico | ||
index.rst | ||
logo.png | ||
requirements.txt | ||
robots.txt | ||
spelling_wordlist.txt | ||
support.rst |
README.md
Wagtail docs
These are Sphinx docs, automatically built at https://docs.wagtail.io when the master branch is committed to Github. To build them locally, install Wagtail's development requirements (in the root Wagtail directory):
pip install -e .[testing,docs]
To build the documentation for browsing, from this directory run:
make html
then open _build/html/index.html
in a browser.
To rebuild automatically while editing the documentation, from this directory run:
sphinx-autobuild . _build
The online editor at http://rst.ninjs.org/ is a helpful tool for checking reStructuredText syntax.