Skip to content

Commit

Permalink
[#560] Do not ensure separate read and write urls in legacy mode
Browse files Browse the repository at this point in the history
  • Loading branch information
domoritz committed Mar 6, 2013
1 parent 4d04d93 commit df84cb7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ckanext/datastore/plugin.py
Expand Up @@ -132,8 +132,9 @@ def _check_separate_db(self):
all internal tables via the api.
'''

if self.write_url == self.read_url:
raise Exception("The write and read-only database connection url are the same.")
if not self.legacy_mode:
if self.write_url == self.read_url:
raise Exception("The write and read-only database connection url are the same.")

if self._get_db_from_url(self.ckan_url) == self._get_db_from_url(self.read_url):
raise Exception("The CKAN and datastore database are the same.")
Expand Down

0 comments on commit df84cb7

Please sign in to comment.