data_archive must have other unique constraints than data
data_archive must have other unique constraints than data.
While data has the unique constraint (datetime, timeseries_id),
the table data_archive has the unique constraint (datetime, timeseries_id, version),
because it can contain multiple versions of the time series at a special point in time.
For Sabine's local VM, this is done via:
ALTER TABLE data_archive
DROP CONSTRAINT data_archive_pkey;
ALTER TABLE data_archive
DROP CONSTRAINT data_archive_timeseries_id_datetime_uniq;
ALTER TABLE data_archive
ADD PRIMARY KEY (timeseries_id, datetime, version);