Self hosted FLOSS fitness/workout, nutrition and weight tracker
For a replication of all measurement tables
Roland Geiderca7a61aed16c
diff --git a/wger/measurements/migrations/0006_health_sync.py b/wger/measurements/migrations/0006_health_sync.pyindex cf7bdc27f..87c4f7a1b 100644--- a/wger/measurements/migrations/0006_health_sync.py+++ b/wger/measurements/migrations/0006_health_sync.py@@ -148,4 +148,16 @@ class Migration(migrations.Migration):verbose_name='Value',),),++ # Powersync only re-replicates existing rows when the sync rules file changes+ # or when the data changes. In order to avoid problems for self-hoster that+ # have not updated the docker repo, we do a no-op update, that forces a+ # re-sync of the buckets+ migrations.RunSQL(+ sql=[+ 'UPDATE measurements_category SET id = id;',+ 'UPDATE measurements_measurement SET id = id;',+ ],+ reverse_sql=migrations.RunSQL.noop,+ ),]