0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-12-01 11:41:20 +01:00
wagtail/docs/contributing
David Beitey 3a5b7255ad Change UniqueConstraint for wider database support (#6607)
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).
2021-01-18 11:52:52 +00:00
..
committing.rst Add section to explain commit to pull request 2020-05-19 17:56:26 +01:00
css_guidelines.rst General spelling fixes 2020-10-03 14:43:03 +01:00
developing.rst Change UniqueConstraint for wider database support (#6607) 2021-01-18 11:52:52 +00:00
general_guidelines.rst Add guideline on the use of British vs American English 2018-06-27 20:39:08 +01:00
html_guidelines.rst Update links in documentation. (#5689) 2019-11-08 09:15:01 +00:00
index.rst Add documentation for reporting security issues 2020-04-20 11:57:26 +10:00
issue_tracking.rst General spelling fixes 2020-10-03 14:43:03 +01:00
javascript_guidelines.rst Update links in documentation. (#5689) 2019-11-08 09:15:01 +00:00
python_guidelines.rst Drop travis entirely 2020-11-05 12:04:12 +00:00
release_process.rst Lint docs with doc8 2020-10-03 14:43:03 +01:00
security.rst General spelling fixes 2020-10-03 14:43:03 +01:00
styleguide.rst Renamed wagtail.contrib.wagtailstyleguide to wagtail.contrib.styleguide 2017-11-26 22:43:47 +00:00