1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/phpmyadmin_ynh.git synced 2024-09-03 19:56:46 +02:00

[Enh] Upgrade upstream version to 4.7.3 (closes #60) (#61)

* [Fix] upstream_version (#60)
* Version 4.7.3
* Fix upgrade
This commit is contained in:
frju365 2017-08-03 17:24:48 +02:00 committed by JimboJoe
parent 8563509b6c
commit 4b36d8df2a
2 changed files with 9 additions and 2 deletions

View file

@ -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

View file

@ -1 +1 @@
4.6.6
4.7.3