Add battery statuses.

This commit is contained in:
Eugene Burmakin 2025-07-27 21:38:51 +02:00
parent 9dfbe8cd11
commit fb4eedfe92
3 changed files with 5 additions and 2 deletions

View file

@ -1 +1 @@
0.30.5 0.30.6

View file

@ -12,6 +12,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
- Visits page should load faster now. - Visits page should load faster now.
- Reverse geocoding jobs now make less database queries. - Reverse geocoding jobs now make less database queries.
## Added
- Points now support discharging and connected_not_charging battery statuses. #768
# [0.30.5] - 2025-07-26 # [0.30.5] - 2025-07-26

View file

@ -17,7 +17,7 @@ class Point < ApplicationRecord
index: true index: true
} }
enum :battery_status, { unknown: 0, unplugged: 1, charging: 2, full: 3, connected_not_charging: 4 }, suffix: true enum :battery_status, { unknown: 0, unplugged: 1, charging: 2, full: 3, connected_not_charging: 4, discharging: 5 }, suffix: true
enum :trigger, { enum :trigger, {
unknown: 0, background_event: 1, circular_region_event: 2, beacon_event: 3, unknown: 0, background_event: 1, circular_region_event: 2, beacon_event: 3,
report_location_message_event: 4, manual_event: 5, timer_based_event: 6, report_location_message_event: 4, manual_event: 5, timer_based_event: 6,