[gcompris/gcomprixogoo] Fixed base upgrade.



commit dc9c8b0a0b472fbd3ec0fd628f01b0e8595c3377
Author: Bruno Coudoin <bruno ordinateur-de-bruno-coudoin local>
Date:   Fri Apr 2 01:25:20 2010 +0200

    Fixed base upgrade.

 src/gcompris/gcompris_db.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/gcompris/gcompris_db.c b/src/gcompris/gcompris_db.c
index 1afd576..587a2f4 100644
--- a/src/gcompris/gcompris_db.c
+++ b/src/gcompris/gcompris_db.c
@@ -383,9 +383,9 @@ gboolean gc_db_init(gboolean disable_database_)
 	  g_error("SQL error: %s\n", zErrMsg);
 	}
       }
-    if(version <= 17)
+    if(version <= 18)
       {
-	g_message("Upgrading from <17 schema version\n");
+	g_message("Upgrading from <18 schema version\n");
 	rc = sqlite3_exec(gcompris_db,"DROP TABLE boards;", NULL,  0, &zErrMsg);
 	if( rc!=SQLITE_OK ) {
 	  g_error("SQL error: %s\n", zErrMsg);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]