Signed-off-by: Anders Kaseorg <andersk@mit.edu>
This was mostly used in migrations, so it's a pretty safe change.
Includes a database migration. The interval field was originally there to facilitate time aggregation (e.g. aggregate_hour_to_day), but we now do such aggregations in views code or in the frontend.