diff options
author | Andreas Fischer <bantu@owncloud.com> | 2014-04-11 21:56:14 +0200 |
---|---|---|
committer | Andreas Fischer <bantu@owncloud.com> | 2014-04-11 21:56:14 +0200 |
commit | f35eae64423b6d0346a13ff04fe2106d27276d66 (patch) | |
tree | c6d7c276bef2102f1d545a20d135bbcbda498c9f /core/command | |
parent | 94522586c1717a55a2cc0f052f32ed9389c659fc (diff) | |
download | nextcloud-server-f35eae64423b6d0346a13ff04fe2106d27276d66.tar.gz nextcloud-server-f35eae64423b6d0346a13ff04fe2106d27276d66.zip |
Remove unnecessary +1 from PostgreSQL sequence correction query.
Diffstat (limited to 'core/command')
-rw-r--r-- | core/command/db/converttype.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/command/db/converttype.php b/core/command/db/converttype.php index 863c739918d..cf0f4437f73 100644 --- a/core/command/db/converttype.php +++ b/core/command/db/converttype.php @@ -232,7 +232,7 @@ class ConvertType extends Command { array("nextval('".$sequence->getName()."'::regclass)", $dbname)); $table_name = $info['table_name']; $column_name = $info['column_name']; - $toDB->executeQuery("SELECT setval('" . $sequence->getName() . "', (SELECT MAX(" . $column_name . ") FROM " . $table_name . ")+1)"); + $toDB->executeQuery("SELECT setval('" . $sequence->getName() . "', (SELECT MAX(" . $column_name . ") FROM " . $table_name . "))"); } } // save new database config |