mirror of
https://github.com/wagtail/wagtail.git
synced 2024-12-01 11:41:20 +01:00
3a5b7255ad
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). |
||
---|---|---|
.. | ||
committing.rst | ||
css_guidelines.rst | ||
developing.rst | ||
general_guidelines.rst | ||
html_guidelines.rst | ||
index.rst | ||
issue_tracking.rst | ||
javascript_guidelines.rst | ||
python_guidelines.rst | ||
release_process.rst | ||
security.rst | ||
styleguide.rst |