Merge branch 'master' of git://github.com/facebook/phabricator
This commit is contained in:
@@ -29,10 +29,12 @@ $initial_counter = max((int)$active_auto, (int)$active_max, (int)$archive_max);
|
|||||||
|
|
||||||
queryfx(
|
queryfx(
|
||||||
$conn_w,
|
$conn_w,
|
||||||
'INSERT IGNORE INTO %T (counterName, counterValue)
|
'INSERT INTO %T (counterName, counterValue)
|
||||||
VALUES (%s, %d)',
|
VALUES (%s, %d)
|
||||||
|
ON DUPLICATE KEY UPDATE counterValue = %d',
|
||||||
LiskDAO::COUNTER_TABLE_NAME,
|
LiskDAO::COUNTER_TABLE_NAME,
|
||||||
$active_table->getTableName(),
|
$active_table->getTableName(),
|
||||||
|
$initial_counter + 1,
|
||||||
$initial_counter + 1);
|
$initial_counter + 1);
|
||||||
|
|
||||||
// Drop AUTO_INCREMENT from the ID column.
|
// Drop AUTO_INCREMENT from the ID column.
|
||||||
|
|||||||
Reference in New Issue
Block a user