[anjuta] symbol-db: increased db version. 300 to 300.1.
- From: Massimo Cora' <mcora src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta] symbol-db: increased db version. 300 to 300.1.
- Date: Wed, 26 May 2010 17:29:14 +0000 (UTC)
commit 3b0d721ed54168741bc42ac3b81b804c8bdaf975
Author: Massimo Corà <mcora src gnome org>
Date: Wed May 26 00:45:25 2010 +0200
symbol-db: increased db version. 300 to 300.1.
plugins/symbol-db/symbol-db-engine-core.c | 6 +++---
plugins/symbol-db/symbol-db-engine-priv.h | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/plugins/symbol-db/symbol-db-engine-core.c b/plugins/symbol-db/symbol-db-engine-core.c
index 54bcac6..814ccb0 100644
--- a/plugins/symbol-db/symbol-db-engine-core.c
+++ b/plugins/symbol-db/symbol-db-engine-core.c
@@ -3216,7 +3216,7 @@ sdb_engine_check_db_version_and_upgrade (SymbolDBEngine *dbe,
const gchar* cnc_string)
{
SymbolDBEnginePriv *priv;
- gint version;
+ gdouble version;
priv = dbe->priv;
@@ -3233,9 +3233,9 @@ sdb_engine_check_db_version_and_upgrade (SymbolDBEngine *dbe,
* automatic upgrading system. Deleting & recreating the db is anyway
* the best option to do.
*/
- if (version < atoi (SYMBOL_DB_VERSION))
+ if (version < atof (SYMBOL_DB_VERSION))
{
- DEBUG_PRINT ("Upgrading from version %d to "SYMBOL_DB_VERSION, version);
+ DEBUG_PRINT ("Upgrading from version %f to "SYMBOL_DB_VERSION, version);
/* we need a full recreation of db. Because of the sym_kind table
* which changed its data but not its fields, we must recreate the
diff --git a/plugins/symbol-db/symbol-db-engine-priv.h b/plugins/symbol-db/symbol-db-engine-priv.h
index 0f7647c..1b52cb6 100644
--- a/plugins/symbol-db/symbol-db-engine-priv.h
+++ b/plugins/symbol-db/symbol-db-engine-priv.h
@@ -38,7 +38,7 @@
#define ANJUTA_DB_FILE ".anjuta_sym_db"
/* if tables.sql changes or general db structure changes modify also the value here */
-#define SYMBOL_DB_VERSION "300"
+#define SYMBOL_DB_VERSION "300.1"
#define TABLES_SQL PACKAGE_DATA_DIR"/tables.sql"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]