Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#1879] Set DataStore to legacy mode when using PostgreSQL < 9.x
Up until now the user had to actively set legacy mode when running PG 8.x, and if not you could end up with the full datastore running on an old postgres version. Features like the SQL search are not properly supported on these versions, so we need to explicitly disable them when running on PG 8.x, by setting `legacy_mode` to True. The current behaviour is that legacy mode will be activated if `ckan.datastore.read_url` is not present in the configuration and/or postgres < 9.x.
- Loading branch information
Showing
2 changed files
with
73 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters