From: olivier Date: Sun, 20 May 2007 15:10:44 +0000 (+0000) Subject: - replace parethensis with underscores in item country names X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=37699d9ec0a6828e5d25b18e6cf2a3234a927d66;p=telemeta-data.git - replace parethensis with underscores in item country names - associate a single test WAV file with every item - add warning about unsuitability for production git-svn-id: http://svn.parisson.org/svn/crem@2 3bf09e05-f825-4182-b9bc-eedd7160adf0 --- diff --git a/README b/README index 7c6e6cc..4d05575 100644 --- a/README +++ b/README @@ -1,4 +1,9 @@ -LEM/CREM data and how to import it into Telemeta +== CREM data and how to import it into Telemeta == + +Warning: the following instructions allow you to import the CREM's data +into telemeta. However, it is currently a rather data destructive process, +only meant for demonstration and testing purpose. Do not use this in a +production environment. 1 - Install Telemeta upon MySQL. Initialize the database using Telemeta's Django models. Ensure that everything is running fine before going any @@ -14,9 +19,11 @@ $ scripts/prepare src/2007-05-09 3 - Use the import.sql script to insert the data into your MySQL database. Example: - $ mysql your_telemeta_database < scripts/import.sql +4 - Copy the WAV test file of your choice, into /items/test.wav +This single file is associated with all media items, for testing purpose. + That should be it. If you want to run Telemeta against SQLite instead of MySQL, first follow the above instructions to import the data into MySQL. Then convert your data from MySQL to SQLite, this is a common task, google diff --git a/scripts/import.sql b/scripts/import.sql index ceb680b..78c2078 100644 --- a/scripts/import.sql +++ b/scripts/import.sql @@ -16,7 +16,9 @@ LINES TERMINATED BY '\r\n'; UPDATE telemeta_item SET id=REPLACE(id, '/', '--'); UPDATE telemeta_item SET collection_id=REPLACE(collection_id, '/', '--'); UPDATE telemeta_item SET title='' WHERE title='N'; --- UPDATE telemeta_item SET file="items/test.wav"; +UPDATE telemeta_item SET etat=REPLACE(etat, ')', '_'); +UPDATE telemeta_item SET etat=REPLACE(etat, '(', '_'); +UPDATE telemeta_item SET file="items/test.wav"; DELETE FROM telemeta_physicalformat; INSERT INTO telemeta_physicalformat (value)