Changeset - 621d85a64fff
[Not reviewed]
0 1 0
Vitaly Takmazov - 9 years ago 2016-05-27 22:48:51
vitalyster@gmail.com
MySQL: do not forget to use table prefix
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
libtransport/MySQLBackend.cpp
Show inline comments
 
@@ -403,13 +403,13 @@ bool MySQLBackend::createDatabase() {
 

	
 
		exec("CREATE TABLE IF NOT EXISTS `" + m_prefix + "db_version` ("
 
				"`ver` int(10) unsigned NOT NULL default '1',"
 
				"UNIQUE KEY `ver` (`ver`)"
 
			") ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;");
 

	
 
		exec("INSERT IGNORE INTO db_version (ver) VALUES ('2');");
 
		exec("INSERT IGNORE INTO `" + m_prefix + "db_version` (ver) VALUES ('2');");
 
	}
 

	
 
	return true;
 
}
 

	
 
bool MySQLBackend::exec(const std::string &query) {
0 comments (0 inline, 0 general)