diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/dal/mysqldataprovider.h | 1 | ||||
-rw-r--r-- | src/sql/mysql/createTables.sql | 12 |
2 files changed, 11 insertions, 2 deletions
diff --git a/src/dal/mysqldataprovider.h b/src/dal/mysqldataprovider.h index c5b796f5..ef0f4cfc 100644 --- a/src/dal/mysqldataprovider.h +++ b/src/dal/mysqldataprovider.h @@ -28,6 +28,7 @@ #include <winsock2.h> #endif #include <mysql/mysql.h> +#include <climits> #include "dataprovider.h" #include "common/configuration.hpp" diff --git a/src/sql/mysql/createTables.sql b/src/sql/mysql/createTables.sql index 5d412095..7b533c7b 100644 --- a/src/sql/mysql/createTables.sql +++ b/src/sql/mysql/createTables.sql @@ -158,7 +158,7 @@ DEFAULT CHARSET=utf8; INSERT INTO tmw_world_states VALUES('accountserver_startup',NULL,NULL,UNIX_TIMESTAMP()); INSERT INTO tmw_world_states VALUES('accountserver_version',NULL,NULL,UNIX_TIMESTAMP()); -INSERT INTO tmw_world_states VALUES('database_version', NULL,'2', UNIX_TIMESTAMP()); +INSERT INTO tmw_world_states VALUES('database_version', NULL,'3', UNIX_TIMESTAMP()); -- -- table: `tmw_guilds` @@ -335,4 +335,12 @@ AS JOIN tmw_characters c ON l.char_id = c.id; -
\ No newline at end of file + +CREATE TABLE tmw_transactions +( + id INTEGER PRIMARY KEY, + char_id INTEGER NOT NULL, + action INTEGER NOT NULL, + message TEXT, + time INTEGER NOT NULL +);
\ No newline at end of file |