1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/castopod_ynh.git synced 2024-09-03 18:16:14 +02:00

Add migrations for v1.11.0

This commit is contained in:
Mateusz Szymański 2024-04-18 23:07:51 +02:00
parent 2a241f5f82
commit 0a51902e25
2 changed files with 8 additions and 0 deletions

4
conf/sql/v1.11.0.sql Normal file
View file

@ -0,0 +1,4 @@
INSERT INTO `cp_platforms` (`slug`, `type`, `label`, `home_url`, `submit_url`) VALUES
('telegram', 'social', 'Telegram', 'https://www.telegram.org/', ''),
('episodes-fm', 'podcasting', 'Episodes.fm', 'https://episodes.fm/', 'https://podcastindex.org/add'),
('truefans', 'podcasting', 'Truefans', 'https://truefans.fm/', 'https://podcastindex.org/add');

View file

@ -136,6 +136,10 @@ if ynh_compare_current_package_version --comparison lt --version "1.10.5~ynh1";
# cf https://code.castopod.org/adaures/castopod/-/releases/v1.10.5
ynh_mysql_connect_as --user=$db_user --password=$db_pwd --database=$db_name < "../conf/sql/v1.10.5.sql"
fi
if ynh_compare_current_package_version --comparison lt --version "1.11.0~ynh1"; then
# cf https://code.castopod.org/adaures/castopod/-/releases/v1.11.0
ynh_mysql_connect_as --user=$db_user --password=$db_pwd --database=$db_name < "../conf/sql/v1.11.0.sql"
fi
#=================================================
# END OF SCRIPT