Fixed offline messages bug
This commit is contained in:
parent
9ef9ce2b22
commit
885cf52bdc
@ -1 +1 @@
|
|||||||
Subproject commit 7261d531f3c10be1437a4572369260aeff075e6c
|
Subproject commit 99293e3af97cdc4041282a29495841b8ae3d2a4d
|
@ -44,7 +44,6 @@ extern void testTomMath();
|
|||||||
#define DB_NAME "TeaData.sqlite"
|
#define DB_NAME "TeaData.sqlite"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <regex>
|
|
||||||
#include <codecvt>
|
#include <codecvt>
|
||||||
#include "src/client/music/internal_provider/channel_replay/ChannelProvider.h"
|
#include "src/client/music/internal_provider/channel_replay/ChannelProvider.h"
|
||||||
|
|
||||||
|
@ -44,7 +44,7 @@ if(!result && result.msg().find(ignore) == string::npos){
|
|||||||
|
|
||||||
#define RESIZE_COLUMN(tblName, rowName, size) up vote EXECUTE("Could not change column size", "ALTER TABLE " tblName " ALTER COLUMN " rowName " varchar(" size ")");
|
#define RESIZE_COLUMN(tblName, rowName, size) up vote EXECUTE("Could not change column size", "ALTER TABLE " tblName " ALTER COLUMN " rowName " varchar(" size ")");
|
||||||
|
|
||||||
#define CURRENT_DATABASE_VERSION 11
|
#define CURRENT_DATABASE_VERSION 12
|
||||||
#define CURRENT_PERMISSION_VERSION 4
|
#define CURRENT_PERMISSION_VERSION 4
|
||||||
|
|
||||||
#define CLIENT_UID_LENGTH "64"
|
#define CLIENT_UID_LENGTH "64"
|
||||||
@ -477,6 +477,14 @@ ROLLBACK;
|
|||||||
}
|
}
|
||||||
db_version(12);
|
db_version(12);
|
||||||
#endif
|
#endif
|
||||||
|
case 11:
|
||||||
|
result = sql::command(this->sql(), "UPDATE TABLE `letters` SET `created` TO 0 WHERE 1;").execute();
|
||||||
|
if(!result) {
|
||||||
|
error = "Failed to reset offline messages timestamps";
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
db_version(12);
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user