mirror of
https://github.com/YunoHost-Apps/castopod_ynh.git
synced 2024-09-03 18:16:14 +02:00
Actually fix 1.6.5~ynh1 upgrade.
This commit is contained in:
parent
04e434a9c6
commit
6c9e3ab78d
1 changed files with 2 additions and 0 deletions
|
@ -54,6 +54,8 @@ if ynh_compare_current_package_version --comparison le --version "1.1.2~ynh2"; t
|
|||
ynh_script_progression --message="Fixing migrations..." --weight=1
|
||||
# this will fail is `cp-install` was not run on prev version - just ignore, DB schema is (re)generated later.
|
||||
ynh_mysql_execute_as_root --database=$db_name --sql="UPDATE cp_migrations SET class='Media\\\\Database\\\\Migrations\\\\AddMedia', namespace='Media' where class='App\\\\Database\\\\Migrations\\\\AddMedia'" || true
|
||||
elif ynh_compare_current_package_version --comparison lt --version "1.6.5~ynh2"; then
|
||||
chown -R $app:www-data $data_dir
|
||||
fi
|
||||
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue