]> git.parisson.com Git - telemeta-data.git/commitdiff
- replace parethensis with underscores in item country names
authorolivier <olivier@3bf09e05-f825-4182-b9bc-eedd7160adf0>
Sun, 20 May 2007 15:10:44 +0000 (15:10 +0000)
committerolivier <olivier@3bf09e05-f825-4182-b9bc-eedd7160adf0>
Sun, 20 May 2007 15:10:44 +0000 (15:10 +0000)
- 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

README
scripts/import.sql

diff --git a/README b/README
index 7c6e6cc9c240166136c4c45d113d1eaa1db5663c..4d05575b0c5ae1791c8c5c3750dc3f10d0f6f665 100644 (file)
--- 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 <MEDIA_ROOT>/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 
index ceb680bb6f91acaa4c408836ab43993083306c82..78c2078fa6e6348856439661d4bc5a3ec1a68036 100644 (file)
@@ -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)