[ckan-changes] [ckan/ckan] cc1fd0: [#2234] Improve datastore connection checks on mig...

GitHub noreply at github.com
Tue Nov 17 13:09:27 UTC 2015


  Branch: refs/heads/2234-further-migration-checks
  Home:   https://github.com/ckan/ckan
  Commit: cc1fd08bebe00fc40d86e52b639e5ca062461c0c
      https://github.com/ckan/ckan/commit/cc1fd08bebe00fc40d86e52b639e5ca062461c0c
  Author: amercader <amercadero at gmail.com>
  Date:   2015-11-17 (Tue, 17 Nov 2015)

  Changed paths:
    M ckan/migration/versions/081_set_datastore_active.py

  Log Message:
  -----------
  [#2234] Improve datastore connection checks on migration

If the datastore connection is set on the config file but the user or
database don't actually exist, skip the migration.

Note that this only happens when the config options are there but the
datastore plugin is not loaded (like in many extensions that extend
their test.ini with the core test-core.ini). Otherwise the connection
will crash anyway during the loading of the plugin itself.




More information about the ckan-changes mailing list