[ckan-changes] [ckan/ckan] 918eeb: Adds metadata_created as a proper DB field.

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


  Branch: refs/heads/2735-metadata-created-as-field
  Home:   https://github.com/ckan/ckan
  Commit: 918eebee07c277d7a2315185adfb9f3f21a480e7
      https://github.com/ckan/ckan/commit/918eebee07c277d7a2315185adfb9f3f21a480e7
  Author: Ross Jones <ross at servercode.co.uk>
  Date:   2015-11-17 (Tue, 17 Nov 2015)

  Changed paths:
    A ckan/migration/versions/082_add_metadata_created.py
    M ckan/model/package.py

  Log Message:
  -----------
  Adds metadata_created as a proper DB field.

Currently the metadata_created is calculated on each access by querying
the package_revision table and finding the oldest revision.  There's
little advantage to this over setting the field to be a column on the
package table and defaulting to now().  This means it can be overwritten
by those components, like harvesting, that require the ability to do so
- without meddling with revisions.

This should fix #2735




More information about the ckan-changes mailing list