projects
/
emufront
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2697f2c
)
A Notice
author
Mikko Keinänen
<mikko.keinanen@gmail.com>
Tue, 16 Nov 2010 21:29:00 +0000
(23:29 +0200)
committer
Mikko Keinänen
<mikko.keinanen@gmail.com>
Tue, 16 Nov 2010 21:29:00 +0000
(23:29 +0200)
src/db/dbcreator.cpp
patch
|
blob
|
history
diff --git
a/src/db/dbcreator.cpp
b/src/db/dbcreator.cpp
index
2ffca2c
..
48a755d
100644
(file)
--- a/
src/db/dbcreator.cpp
+++ b/
src/db/dbcreator.cpp
@@
-47,6
+47,24
@@
bool DbCreator::createDB()
try
{
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");
query.exec("DROP TABLE IF EXISTS mediaimagecontainer_mediaimage");
query.exec("DROP TABLE IF EXISTS mediaimagecontainer_filepath");
query.exec("DROP TABLE IF EXISTS filepath");