diff --git a/scripts/upgrade b/scripts/upgrade index e6e8bd2..67fa5ea 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -53,8 +53,15 @@ sudo tar xzf phpMyAdmin-$version-all-languages.tar.gz -C ../sources/ > /dev/nul sudo cp -r ../sources/phpMyAdmin-$version-all-languages/. "$final_path" # Update tables + +# Handle upgrade from a version before latest version +# Ignore warnings and failures that will occur if already on latest version sudo sed -i "s@phpmyadmin@$db_user@g" $final_path/sql/upgrade_column_info_4_3_0+.sql -sudo mysql -u $db_user -p$db_pwd < $final_path/sql/upgrade_column_info_4_3_0+.sql +sudo mysql -u $db_user -p$db_pwd < $final_path/sql/upgrade_column_info_4_3_0+.sql 2>&1 > /dev/null || true + +# Upgrade from last version (don't ignore failures) +sudo sed -i "s@phpmyadmin@$db_user@g" $final_path/sql/upgrade_tables_4_7_0+.sql +sudo mysql -u $db_user -p$db_pwd < $final_path/sql/upgrade_tables_4_7_0+.sql sudo sed -i "s@phpmyadmin@$db_user@g" $final_path/sql/create_tables.sql sudo mysql -u $db_user -p$db_pwd < $final_path/sql/create_tables.sql diff --git a/sources/upstream_version b/sources/upstream_version index ec3f25f..87b18a5 100644 --- a/sources/upstream_version +++ b/sources/upstream_version @@ -1 +1 @@ -4.6.6 +4.7.3