Skip to content

repo stats tables: fix migration to only update function

Administrator requested to merge mrn/stats-tables-avoid-zeros into main

Created by: mrnugget

I assumed that I had to drop&recreate the trigger, but testing confirms that I only need to CREATE OR REPLACE FUNCTION for the new code to be executed.

I also added tests to confirm this behaviour.

Test plan

Merge request reports

Loading