-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
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
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)