1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/hubzilla_ynh.git synced 2024-09-03 19:26:21 +02:00

pg db provision prior to migration

This commit is contained in:
dragondaddy 2024-01-29 23:38:46 +01:00
parent b0e957cce8
commit d8a5cff8bd

View file

@ -60,6 +60,8 @@ fi
# Check if using MariaDB
# This migration should be done before the upgrade
if mysqlshow | grep -q "^| $db_name "; then
ynh_script_progression --message="Provisionning database..." --weight=1
ynh_psql_connect_as --user="$db_name" --password="$db_pwd" --database="$db_name" < $install_dir/install/schema_postgres.sql
# Migrate the database from MySQL/MariaDB to PostgreSQL
remove_psql_in_case_of_error=1
mariadb-to-pg