Skip to content
Snippets Groups Projects
  1. Apr 29, 2020
  2. Apr 28, 2020
  3. Apr 27, 2020
  4. Apr 24, 2020
  5. Apr 22, 2020
  6. Apr 21, 2020
  7. Apr 20, 2020
  8. Apr 14, 2020
  9. Apr 11, 2020
    • Erwan Rouchet's avatar
      Add region source to both classifications and elements · f9e034b2
      Erwan Rouchet authored
      The regions migration was done before the addition of
      sources on elements, but due to the order in which they
      have been merged, sources were added before it.
      
      To avoid re-running the documents.0009 migration, one can
      use the following SQL query, assuming nobody has yet created
      new elements with the new types created from regions:
      UPDATE documents_element elt SET elt.source_id = cls.source_id
      FROM documents_classification cls
      WHERE elt.id = cls.element_id
      AND elt.type_id IN (SELECT id from documents_elementtype WHERE slug LIKE 'region_%');
      f9e034b2
  10. Apr 10, 2020
  11. Apr 09, 2020
Loading