fixed trigger creation
Python Code Quality / python-code-quality (push) Successful in 15s

This commit is contained in:
Brian Bjarke Jensen
2025-10-27 21:25:33 +01:00
parent aa6ec36878
commit 8752cce7ab
+2 -1
View File
@@ -116,7 +116,8 @@ class DatabaseStorage:
END;
$$ language 'plpgsql';
-- Create trigger for metering_points
-- Create trigger for metering_points (drop if exists first)
DROP TRIGGER IF EXISTS update_metering_points_updated_at ON metering_points;
CREATE TRIGGER update_metering_points_updated_at
BEFORE UPDATE ON metering_points
FOR EACH ROW EXECUTE FUNCTION update_updated_at_column();