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

Fix missing table

This commit is contained in:
Éric Gaspar 2023-01-19 17:25:42 +01:00
parent db418a2c72
commit d75933c3dc
2 changed files with 13 additions and 0 deletions

11
scripts/from_beta_16.sql Normal file
View file

@ -0,0 +1,11 @@
SET AUTOCOMMIT = 0;
START TRANSACTION;
ALTER TABLE `cp_settings`
ADD COLUMN context VARCHAR(255) NULL AFTER `type`;
ALTER TABLE cp_podcasts ADD COLUMN published_at DATETIME DEFAULT NULL AFTER
updated_by;
UPDATE cp_podcasts SET published_at = created_at;
COMMIT;

View file

@ -116,6 +116,8 @@ chmod 750 "$final_path"
chmod -R o-rwx "$final_path"
chown -R $app:www-data "$final_path"
ynh_mysql_connect_as --user=$db_name --password=$db_pwd --database=$db_name < ./from_beta_16.sql
#=================================================
# UPGRADE DEPENDENCIES
#=================================================