Added user analytics table to database

This commit is contained in:
woogerboy21 2015-09-06 16:08:53 -04:00
parent dd4900b038
commit d7d50def51
8 changed files with 70 additions and 14 deletions

View file

@ -9,7 +9,7 @@
#include "server.h"
#include "server_database_interface.h"
#define DATABASE_SCHEMA_VERSION 7
#define DATABASE_SCHEMA_VERSION 8
class Servatrice;
@ -73,7 +73,7 @@ public:
const QString &password, const QString &emailAddress, const QString &country, QString &token, bool active = false);
bool activateUser(const QString &userName, const QString &token);
void updateUsersClientID(const QString &userName, const QString &userClientID);
void updateUsersLastLoginTime(const QString &userName);
void updateUsersLastLoginData(const QString &userName, const QString &clientVersion);
void logMessage(const int senderId, const QString &senderName, const QString &senderIp, const QString &logMessage,
LogMessage_TargetType targetType, const int targetId, const QString &targetName);
bool changeUserPassword(const QString &user, const QString &oldPassword, const QString &newPassword);