From eaa72aaa954c6b0b8c493b07219b74f8b41854ec Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Wed, 23 Aug 2023 22:57:07 +0200 Subject: [PATCH] fix --- conf/v1.5.2.sql | 14 ++++++++++++++ scripts/upgrade | 6 +++++- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 conf/v1.5.2.sql diff --git a/conf/v1.5.2.sql b/conf/v1.5.2.sql new file mode 100644 index 0000000..6a2803a --- /dev/null +++ b/conf/v1.5.2.sql @@ -0,0 +1,14 @@ +-- change Twitter to X +INSERT INTO `cp_platforms` (`slug`, `type`, `label`, `home_url`, `submit_url`) VALUES +('x', 'social', 'X', 'https://x.com/', 'https://x.com/i/flow/signup'); + +UPDATE `cp_podcasts_platforms` +SET `platform_slug` = 'x' +WHERE `platform_slug` = 'twitter'; + +DELETE FROM `cp_platforms` WHERE `slug` = 'twitter'; + +-- add buymeacoffee and kofi as funding platforms +INSERT INTO `cp_platforms` (`slug`, `type`, `label`, `home_url`, `submit_url`) VALUES +('buymeacoffee', 'funding', 'Buy Me a Coffee', 'https://www.buymeacoffee.com/', 'https://www.buymeacoffee.com/signup'), +('kofi', 'funding', 'Ko-fi', 'https://ko-fi.com/', 'https://ko-fi.com/account/register'); diff --git a/scripts/upgrade b/scripts/upgrade index 17e52ec..7402b5b 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -75,7 +75,11 @@ chmod 644 "/etc/cron.d/$app" #================================================= # CONFIGURE CASTOPOD #================================================= -# ynh_script_progression --message="Configuring Castopod..." --weight=1 +ynh_script_progression --message="Configuring Castopod database..." --weight=1 + +ynh_mysql_connect_as --user=$db_user --password=$db_pwd --database=$db_name < v1.5.2.sql + +#ynh_script_progression --message="Configuring Castopod..." --weight=1 # ynh_add_config --template="../conf/.env.example" --destination="$install_dir/.env" # chmod 600 $install_dir/.env