From: olivier Date: Mon, 6 Apr 2009 12:13:41 +0000 (+0000) Subject: update prototypes import scripts for telemeta r380 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=2a2bcce01fda7ccba4364fdb9260a1091a2efe7b;p=telemeta-data.git update prototypes import scripts for telemeta r380 git-svn-id: http://svn.parisson.org/svn/crem@75 3bf09e05-f825-4182-b9bc-eedd7160adf0 --- diff --git a/trunk/import/prototype/scripts/crem-import.sql b/trunk/import/prototype/scripts/crem-import.sql index ea3f930..75c49cf 100644 --- a/trunk/import/prototype/scripts/crem-import.sql +++ b/trunk/import/prototype/scripts/crem-import.sql @@ -40,3 +40,9 @@ DELETE FROM telemeta_publishingstatus; INSERT INTO telemeta_publishingstatus (value) SELECT DISTINCT publishing_status FROM telemeta_collection WHERE publishing_status <> '' AND publishing_status IS NOT NULL; + +DELETE FROM telemeta_revision; +INSERT INTO telemeta_revision (element_type, element_id, change_type, time) + SELECT 'collection', id, 'import', NOW() FROM telemeta_collection; +INSERT INTO telemeta_revision (element_type, element_id, change_type, time) + SELECT 'item', id, 'import', NOW() FROM telemeta_item; diff --git a/trunk/import/prototype/scripts/mmsh-import.sql b/trunk/import/prototype/scripts/mmsh-import.sql index 01af094..3c21686 100644 --- a/trunk/import/prototype/scripts/mmsh-import.sql +++ b/trunk/import/prototype/scripts/mmsh-import.sql @@ -57,3 +57,8 @@ INSERT INTO telemeta_physicalformat (value) SELECT DISTINCT physical_format FROM telemeta_collection WHERE physical_format <> '' AND physical_format IS NOT NULL; +DELETE FROM telemeta_revision; +INSERT INTO telemeta_revision (element_type, element_id, change_type, time) + SELECT 'collection', id, 'import', NOW() FROM telemeta_collection; +INSERT INTO telemeta_revision (element_type, element_id, change_type, time) + SELECT 'item', id, 'import', NOW() FROM telemeta_item; diff --git a/trunk/import/prototype/scripts/mnhn-import.sql b/trunk/import/prototype/scripts/mnhn-import.sql index 170804a..f90be5c 100644 --- a/trunk/import/prototype/scripts/mnhn-import.sql +++ b/trunk/import/prototype/scripts/mnhn-import.sql @@ -40,3 +40,9 @@ INSERT INTO telemeta_physicalformat (value) SELECT DISTINCT physical_format FROM telemeta_collection WHERE physical_format <> '' AND physical_format IS NOT NULL; +DELETE FROM telemeta_revision; +INSERT INTO telemeta_revision (element_type, element_id, change_type, time) + SELECT 'collection', id, 'import', NOW() FROM telemeta_collection; +INSERT INTO telemeta_revision (element_type, element_id, change_type, time) + SELECT 'item', id, 'import', NOW() FROM telemeta_item; + diff --git a/trunk/import/prototype/scripts/mucem-import.sql b/trunk/import/prototype/scripts/mucem-import.sql index e72fc59..ab63743 100644 --- a/trunk/import/prototype/scripts/mucem-import.sql +++ b/trunk/import/prototype/scripts/mucem-import.sql @@ -41,3 +41,8 @@ INSERT INTO telemeta_physicalformat (value) SELECT DISTINCT physical_format FROM telemeta_collection WHERE physical_format <> '' AND physical_format IS NOT NULL; +DELETE FROM telemeta_revision; +INSERT INTO telemeta_revision (element_type, element_id, change_type, time) + SELECT 'collection', id, 'import', NOW() FROM telemeta_collection; +INSERT INTO telemeta_revision (element_type, element_id, change_type, time) + SELECT 'item', id, 'import', NOW() FROM telemeta_item;