1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/mattermost_ynh.git synced 2024-09-03 19:36:29 +02:00

Merge pull request #415 from YunoHost-Apps/testing

Testing
This commit is contained in:
Pierre de La Morinerie 2023-03-18 10:59:51 +01:00 committed by GitHub
commit 9402c5daa3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 7 deletions

View file

@ -36,7 +36,7 @@ To explore the benefits of Mattermosts enterprise features, you can replace t
- New features and improvements released regularly - New features and improvements released regularly
**Shipped version:** 7.5.2~ynh1 **Shipped version:** 7.5.2~ynh2
## Screenshots ## Screenshots

View file

@ -36,7 +36,7 @@ Pour explorer les avantages des fonctionnalités d'entreprise de Mattermost, vou
- Nouvelles fonctionnalités et améliorations publiées régulièrement - Nouvelles fonctionnalités et améliorations publiées régulièrement
**Version incluse :** 7.5.2~ynh1 **Version incluse :** 7.5.2~ynh2
## Captures décran ## Captures décran

View file

@ -6,7 +6,7 @@
"en": "Open source collaboration platform built for developers", "en": "Open source collaboration platform built for developers",
"fr": "Plateforme de collaboration open source conçue pour les développeurs" "fr": "Plateforme de collaboration open source conçue pour les développeurs"
}, },
"version": "7.5.2~ynh1", "version": "7.5.2~ynh2",
"url": "http://www.mattermost.org/", "url": "http://www.mattermost.org/",
"upstream": { "upstream": {
"license": "GPL-3.0-only", "license": "GPL-3.0-only",

View file

@ -52,10 +52,9 @@ mariadb-to-pg() {
# Focalboard is broken in Mattermost 7.3.0 # Focalboard is broken in Mattermost 7.3.0
if ynh_compare_current_package_version --comparison eq --version 7.3.0~ynh1 if ynh_compare_current_package_version --comparison eq --version 7.3.0~ynh1
then then
# Remove Focalboard tables remove_focalboard_if_7_3_0="EXCLUDING TABLE NAMES MATCHING ~/^focalboard_/"
# Command from https://stackoverflow.com/a/1589324 else
cmd=$(ynh_mysql_execute_as_root --sql="SELECT CONCAT( 'DROP TABLE ', GROUP_CONCAT(table_name) , ';' ) AS statement FROM information_schema.tables WHERE table_schema = '$db_name' AND table_name LIKE 'focalboard_%';" --database=$db_name | tail -n 1) remove_focalboard_if_7_3_0=""
ynh_mysql_execute_as_root --sql="$cmd" --database=$db_name
fi fi
# Use pgloader to migrate database content from MariaDB to PostgreSQL # Use pgloader to migrate database content from MariaDB to PostgreSQL
@ -74,6 +73,8 @@ SET MySQL PARAMETERS
net_read_timeout = '90', net_read_timeout = '90',
net_write_timeout = '180' net_write_timeout = '180'
$remove_focalboard_if_7_3_0
ALTER SCHEMA '$db_name' RENAME TO 'public' ALTER SCHEMA '$db_name' RENAME TO 'public'
; ;