]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#1574] fix mysql/upgrade_8.1_to_8.2.sh.in
authorAndrei Pavel <andrei@isc.org>
Fri, 11 Dec 2020 15:25:44 +0000 (17:25 +0200)
committerAndrei Pavel <andrei@isc.org>
Mon, 14 Dec 2020 10:08:39 +0000 (12:08 +0200)
src/share/database/scripts/mysql/upgrade_8.1_to_8.2.sh.in

index 9d92543c5d7b0e2a9ebc3d8a6e2f2803d32f1473..5f743233e363439650966dd1e94db969ddcea5bd 100644 (file)
@@ -58,10 +58,10 @@ fi
 
 # Function to rename a column in a table.
 change_column() {
-    local schema="${1-}"
-    local table="${2-}"
-    local ocolumn="${3-}"
-    local ncolumn="${4-}"
+    local schema="${1-}"; shift
+    local table="${1-}"; shift
+    local ocolumn="${1-}"; shift
+    local ncolumn="${1-}"; shift
 
     # First let's find out if the column name in the table actually needs updating.
     sql="select count(column_name) from information_schema.columns where table_schema='$schema' and table_name = '$table' and column_name = '$ocolumn'"