YunoHost-Apps / peertube_ynh

Federated (ActivityPub) video streaming platform using P2P for YunoHost
https://joinpeertube.org/fr/
GNU Affero General Public License v3.0
87 stars 27 forks source link

Migration script for upgrade to v4.0 #287

Closed stemy2 closed 2 years ago

stemy2 commented 2 years ago

Hello,

I just saw in the last peertube changelog that after upgrade, we have to execute manually a migration script (mentioned below) to migrate HLS files name. Will you integrate it in the upgrade process for the YNH upgrade ?

cd /var/www/peertube/peertube-latest && sudo -u peertube NODE_CONFIG_DIR=/var/www/peertube/config NODE_ENV=production node dist/scripts/migrations/peertube-4.0.js

BDouze commented 2 years ago

I have added it to the pull request I just created for updating peertube to 4.0.0 : https://github.com/YunoHost-Apps/peertube_ynh/pull/289/commits/c288ec16aa9c1919a15994564d16a38c1e189f3e

But I'm not sure how this should be handled for future upgrades. I guess it should not be run when upgrading to 4.1.0 if upgrading from 4.0.0 but it should still be run if upgrading from an older version (upgrading from 3.4.1 directly to 4.1.0 for example)

yalh76 commented 2 years ago

merged into master