This commit is contained in:
@@ -116,7 +116,8 @@ class DatabaseStorage:
|
|||||||
END;
|
END;
|
||||||
$$ language 'plpgsql';
|
$$ 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
|
CREATE TRIGGER update_metering_points_updated_at
|
||||||
BEFORE UPDATE ON metering_points
|
BEFORE UPDATE ON metering_points
|
||||||
FOR EACH ROW EXECUTE FUNCTION update_updated_at_column();
|
FOR EACH ROW EXECUTE FUNCTION update_updated_at_column();
|
||||||
|
|||||||
Reference in New Issue
Block a user