A Notice
authorMikko Keinänen <mikko.keinanen@gmail.com>
Tue, 16 Nov 2010 21:29:00 +0000 (23:29 +0200)
committerMikko Keinänen <mikko.keinanen@gmail.com>
Tue, 16 Nov 2010 21:29:00 +0000 (23:29 +0200)
src/db/dbcreator.cpp

index 2ffca2c..48a755d 100644 (file)
@@ -47,6 +47,24 @@ bool DbCreator::createDB()
 
     try
     {
+
+        /*
+
+            N O T I C E
+            -----------
+
+            When adding a new table, remember to add a drop table
+            clause also!
+
+            When changing the database structure, increase
+            also the version number and create a sql command
+            for updating from last version to new version.
+
+            Update those version upgrade "patches" here as a version history:
+            -----------------------------------------------------------------
+
+        */
+
         query.exec("DROP TABLE IF EXISTS mediaimagecontainer_mediaimage");
         query.exec("DROP TABLE IF EXISTS mediaimagecontainer_filepath");
         query.exec("DROP TABLE IF EXISTS filepath");