mirror of
https://github.com/YunoHost-Apps/phpmyadmin_ynh.git
synced 2024-09-03 19:56:46 +02:00
* [Fix] upstream_version (#60) * Version 4.7.3 * Fix upgrade
This commit is contained in:
parent
8563509b6c
commit
4b36d8df2a
2 changed files with 9 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -1 +1 @@
|
|||
4.6.6
|
||||
4.7.3
|
||||
|
|
Loading…
Reference in a new issue