Use INSERT IGNORE for db_version
This commit is contained in:
parent
0cc7a00b1c
commit
e0d85521ed
1 changed files with 1 additions and 1 deletions
|
@ -371,7 +371,7 @@ bool MySQLBackend::createDatabase() {
|
|||
"UNIQUE KEY `ver` (`ver`)"
|
||||
") ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;");
|
||||
|
||||
exec("INSERT INTO db_version (ver) VALUES ('2');");
|
||||
exec("INSERT IGNORE INTO db_version (ver) VALUES ('2');");
|
||||
}
|
||||
|
||||
return true;
|
||||
|
|
Loading…
Add table
Reference in a new issue