1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-22 23:02:42 +01:00

Merge branch 'master' of git://github.com/facebook/phabricator

This commit is contained in:
Chad Little 2012-11-08 11:45:29 -08:00
commit 378702e7b4

View file

@ -29,10 +29,12 @@ $initial_counter = max((int)$active_auto, (int)$active_max, (int)$archive_max);
queryfx(
$conn_w,
'INSERT IGNORE INTO %T (counterName, counterValue)
VALUES (%s, %d)',
'INSERT INTO %T (counterName, counterValue)
VALUES (%s, %d)
ON DUPLICATE KEY UPDATE counterValue = %d',
LiskDAO::COUNTER_TABLE_NAME,
$active_table->getTableName(),
$initial_counter + 1,
$initial_counter + 1);
// Drop AUTO_INCREMENT from the ID column.