fixed bug: unable to setup SQLite storage
authorMarcus Eggenberger <egs@quassel-irc.org>
Fri, 22 Feb 2008 13:36:25 +0000 (13:36 +0000)
committerMarcus Eggenberger <egs@quassel-irc.org>
Fri, 22 Feb 2008 13:36:25 +0000 (13:36 +0000)
src/core/SQL/SQLite/8/setup_000_quasseluser.sql
src/core/sqlitestorage.cpp
version.inc

index 37376f4..0b81759 100644 (file)
@@ -1,7 +1,7 @@
 CREATE TABLE quasseluser (
        userid INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
        username TEXT UNIQUE NOT NULL,
 CREATE TABLE quasseluser (
        userid INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
        username TEXT UNIQUE NOT NULL,
-       password BLOB NOT NULL
+       password TEXT NOT NULL
 )
 
          
 )
 
          
index 1548085..3c61f98 100644 (file)
@@ -731,7 +731,7 @@ bool SqliteStorage::init(const QVariantMap &settings) {
     return false;
 
   if(!checkMigratedQuery.first())
     return false;
 
   if(!checkMigratedQuery.first())
-    return false;
+    return true;               // table is empty -> no work to be done
 
   QString passType = checkMigratedQuery.value(0).toString().toLower();
   if(passType == "text")
 
   QString passType = checkMigratedQuery.value(0).toString().toLower();
   if(passType == "text")
index 9d847c7..9e189b1 100644 (file)
@@ -4,8 +4,8 @@
 { using namespace Global;
 
   quasselVersion = "0.2.0-pre";
 { using namespace Global;
 
   quasselVersion = "0.2.0-pre";
-  quasselDate = "2008-02-21";
-  quasselBuild = 574;
+  quasselDate = "2008-02-22";
+  quasselBuild = 577;
 
   //! Minimum client build number the core needs
   clientBuildNeeded = 563;
 
   //! Minimum client build number the core needs
   clientBuildNeeded = 563;