mirror of
https://github.com/YunoHost-Apps/moncycle_ynh.git
synced 2024-09-03 19:46:16 +02:00
commit
71666f4d6b
10 changed files with 44 additions and 19 deletions
|
@ -5,7 +5,7 @@ It shall NOT be edited by hand.
|
|||
|
||||
# Moncycle for YunoHost
|
||||
|
||||
[](https://dash.yunohost.org/appci/app/moncycle)  
|
||||
[](https://ci-apps.yunohost.org/ci/apps/moncycle/)  
|
||||
|
||||
[](https://install-app.yunohost.org/?app=moncycle)
|
||||
|
||||
|
@ -35,7 +35,7 @@ Make it easy to monitor menstrual cycles and apply natural methods. Billings. Sy
|
|||
- automatic sending of cycles by email
|
||||
- no data sales/no advertising
|
||||
|
||||
**Shipped version:** 13~ynh5
|
||||
**Shipped version:** 14~ynh1
|
||||
|
||||
**Demo:** <https://tableau.moncycle.app/connexion.php?email1=demo.bill@moncycle.app&mdp=demo>
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ No se debe editar a mano.
|
|||
|
||||
# Moncycle para Yunohost
|
||||
|
||||
[](https://dash.yunohost.org/appci/app/moncycle)  
|
||||
[](https://ci-apps.yunohost.org/ci/apps/moncycle/)  
|
||||
|
||||
[](https://install-app.yunohost.org/?app=moncycle)
|
||||
|
||||
|
@ -35,7 +35,7 @@ Make it easy to monitor menstrual cycles and apply natural methods. Billings. Sy
|
|||
- automatic sending of cycles by email
|
||||
- no data sales/no advertising
|
||||
|
||||
**Versión actual:** 13~ynh5
|
||||
**Versión actual:** 14~ynh1
|
||||
|
||||
**Demo:** <https://tableau.moncycle.app/connexion.php?email1=demo.bill@moncycle.app&mdp=demo>
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ EZ editatu eskuz.
|
|||
|
||||
# Moncycle YunoHost-erako
|
||||
|
||||
[](https://dash.yunohost.org/appci/app/moncycle)  
|
||||
[](https://ci-apps.yunohost.org/ci/apps/moncycle/)  
|
||||
|
||||
[](https://install-app.yunohost.org/?app=moncycle)
|
||||
|
||||
|
@ -35,7 +35,7 @@ Make it easy to monitor menstrual cycles and apply natural methods. Billings. Sy
|
|||
- automatic sending of cycles by email
|
||||
- no data sales/no advertising
|
||||
|
||||
**Paketatutako bertsioa:** 13~ynh5
|
||||
**Paketatutako bertsioa:** 14~ynh1
|
||||
|
||||
**Demoa:** <https://tableau.moncycle.app/connexion.php?email1=demo.bill@moncycle.app&mdp=demo>
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ Il NE doit PAS être modifié à la main.
|
|||
|
||||
# Moncycle pour YunoHost
|
||||
|
||||
[](https://dash.yunohost.org/appci/app/moncycle)  
|
||||
[](https://ci-apps.yunohost.org/ci/apps/moncycle/)  
|
||||
|
||||
[](https://install-app.yunohost.org/?app=moncycle)
|
||||
|
||||
|
@ -36,7 +36,7 @@ Rendre facile le suivi des cycles menstruels et l’application des méthodes na
|
|||
- pas de vente de données/pas de publicité
|
||||
|
||||
|
||||
**Version incluse :** 13~ynh5
|
||||
**Version incluse :** 14~ynh1
|
||||
|
||||
**Démo :** <https://tableau.moncycle.app/connexion.php?email1=demo.bill@moncycle.app&mdp=demo>
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ NON debe editarse manualmente.
|
|||
|
||||
# Moncycle para YunoHost
|
||||
|
||||
[](https://dash.yunohost.org/appci/app/moncycle)  
|
||||
[](https://ci-apps.yunohost.org/ci/apps/moncycle/)  
|
||||
|
||||
[](https://install-app.yunohost.org/?app=moncycle)
|
||||
|
||||
|
@ -35,7 +35,7 @@ Make it easy to monitor menstrual cycles and apply natural methods. Billings. Sy
|
|||
- automatic sending of cycles by email
|
||||
- no data sales/no advertising
|
||||
|
||||
**Versión proporcionada:** 13~ynh5
|
||||
**Versión proporcionada:** 14~ynh1
|
||||
|
||||
**Demo:** <https://tableau.moncycle.app/connexion.php?email1=demo.bill@moncycle.app&mdp=demo>
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
# YunoHost 上的 Moncycle
|
||||
|
||||
[](https://dash.yunohost.org/appci/app/moncycle)  
|
||||
[](https://ci-apps.yunohost.org/ci/apps/moncycle/)  
|
||||
|
||||
[](https://install-app.yunohost.org/?app=moncycle)
|
||||
|
||||
|
@ -35,7 +35,7 @@ Make it easy to monitor menstrual cycles and apply natural methods. Billings. Sy
|
|||
- automatic sending of cycles by email
|
||||
- no data sales/no advertising
|
||||
|
||||
**分发版本:** 13~ynh5
|
||||
**分发版本:** 14~ynh1
|
||||
|
||||
**演示:** <https://tableau.moncycle.app/connexion.php?email1=demo.bill@moncycle.app&mdp=demo>
|
||||
|
||||
|
|
13
conf/migrate_13.0.6.sql
Normal file
13
conf/migrate_13.0.6.sql
Normal file
|
@ -0,0 +1,13 @@
|
|||
delete a from observation a join (select no_observation from observation group by date_obs, no_compte having count(no_observation)>1) b on a.no_observation = b.no_observation;
|
||||
delete a from observation a join (select no_observation from observation group by date_obs, no_compte having count(no_observation)>1) b on a.no_observation = b.no_observation;
|
||||
delete a from observation a join (select no_observation from observation group by date_obs, no_compte having count(no_observation)>1) b on a.no_observation = b.no_observation;
|
||||
delete a from observation a join (select no_observation from observation group by date_obs, no_compte having count(no_observation)>1) b on a.no_observation = b.no_observation;
|
||||
delete a from observation a join (select no_observation from observation group by date_obs, no_compte having count(no_observation)>1) b on a.no_observation = b.no_observation;
|
||||
delete a from observation a join (select no_observation from observation group by date_obs, no_compte having count(no_observation)>1) b on a.no_observation = b.no_observation;
|
||||
delete a from observation a join (select no_observation from observation group by date_obs, no_compte having count(no_observation)>1) b on a.no_observation = b.no_observation;
|
||||
delete a from observation a join (select no_observation from observation group by date_obs, no_compte having count(no_observation)>1) b on a.no_observation = b.no_observation;
|
||||
delete a from observation a join (select no_observation from observation group by date_obs, no_compte having count(no_observation)>1) b on a.no_observation = b.no_observation;
|
||||
delete a from observation a join (select no_observation from observation group by date_obs, no_compte having count(no_observation)>1) b on a.no_observation = b.no_observation;
|
||||
delete a from observation a join (select no_observation from observation group by date_obs, no_compte having count(no_observation)>1) b on a.no_observation = b.no_observation;
|
||||
|
||||
alter table observation add constraint unique_compte_and_date unique (no_compte, date_obs);
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"app": "moncycle.app",
|
||||
"version": "13~ynh5",
|
||||
"build": "2024-05-20",
|
||||
"commit": "3317aa3"
|
||||
"version": "14~ynh1",
|
||||
"build": "2024-07-15",
|
||||
"commit": "2c14d71"
|
||||
}
|
||||
|
|
|
@ -5,7 +5,7 @@ name = "Moncycle"
|
|||
description.en = "Menstrual cycle follow-up for natural family planning"
|
||||
description.fr = "Suivi de cycle pour les méthodes naturelles de régulation de naissance"
|
||||
|
||||
version = "13~ynh5"
|
||||
version = "14~ynh1"
|
||||
|
||||
maintainers = ["Raoul de Limezy"]
|
||||
|
||||
|
@ -34,8 +34,8 @@ ram.runtime = "50M"
|
|||
|
||||
[resources]
|
||||
[resources.sources.main]
|
||||
url = "https://github.com/jean-io/moncycle.app/archive/3317aa3307c7faa25fd90e5e23ccadb167a7c822.zip"
|
||||
sha256 = "af999e814ee813cde886ffef2778d9f0ebe7b94bbaabf4184f5577812fdb78db"
|
||||
url = "https://github.com/jean-io/moncycle.app/archive/2c14d712156c803244c10d14b90206721e678818.zip"
|
||||
sha256 = "b309d2e25428c3f5a33a93504838d83b8a98b1d8152903cdf340a2f83a777f25"
|
||||
autoupdate.strategy = "latest_github_release"
|
||||
|
||||
[resources.system_user]
|
||||
|
|
|
@ -46,6 +46,8 @@ pushd "$install_dir"
|
|||
ynh_mysql_connect_as --user=$db_user --password=$db_pwd --database=$db_name < migrate_7.0.6.sql
|
||||
ynh_add_config --template="../conf/migrate_9.0.3.sql" --destination="$install_dir/migrate_9.0.3.sql"
|
||||
ynh_mysql_connect_as --user=$db_user --password=$db_pwd --database=$db_name < migrate_9.0.3.sql
|
||||
ynh_add_config --template="../conf/migrate_13.0.6.sql" --destination="$install_dir/migrate_13.0.6.sql"
|
||||
ynh_mysql_connect_as --user=$db_user --password=$db_pwd --database=$db_name < migrate_13.0.6.sql
|
||||
else
|
||||
if ynh_compare_current_package_version --comparison le --version 7.0~ynh6
|
||||
then
|
||||
|
@ -54,13 +56,23 @@ pushd "$install_dir"
|
|||
ynh_mysql_connect_as --user=$db_user --password=$db_pwd --database=$db_name < migrate_7.0.6.sql
|
||||
ynh_add_config --template="../conf/migrate_9.0.3.sql" --destination="$install_dir/migrate_9.0.3.sql"
|
||||
ynh_mysql_connect_as --user=$db_user --password=$db_pwd --database=$db_name < migrate_9.0.3.sql
|
||||
ynh_add_config --template="../conf/migrate_13.0.6.sql" --destination="$install_dir/migrate_13.0.6.sql"
|
||||
ynh_mysql_connect_as --user=$db_user --password=$db_pwd --database=$db_name < migrate_13.0.6.sql
|
||||
else
|
||||
if ynh_compare_current_package_version --comparison le --version 9.0~ynh3
|
||||
then
|
||||
ynh_add_config --template="../conf/migrate_9.0.3.sql" --destination="$install_dir/migrate_9.0.3.sql"
|
||||
ynh_mysql_connect_as --user=$db_user --password=$db_pwd --database=$db_name < migrate_9.0.3.sql
|
||||
ynh_add_config --template="../conf/migrate_13.0.6.sql" --destination="$install_dir/migrate_13.0.6.sql"
|
||||
ynh_mysql_connect_as --user=$db_user --password=$db_pwd --database=$db_name < migrate_13.0.6.sql
|
||||
else
|
||||
ynh_script_progression --message="7.0.6 to 8.0 database migration not required since package > 7.0.6"
|
||||
if ynh_compare_current_package_version --comparison le --version 13~ynh6
|
||||
then
|
||||
ynh_add_config --template="../conf/migrate_13.0.6.sql" --destination="$install_dir/migrate_13.0.6.sql"
|
||||
ynh_mysql_connect_as --user=$db_user --password=$db_pwd --database=$db_name < migrate_13.0.6.sql
|
||||
else
|
||||
ynh_script_progression --message="No migrations required since package > 13.0.6"
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
|
Loading…
Add table
Reference in a new issue