You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I fall into a problem while implementing rubygems/rubygems.org#4642 which I have multiple views that are interdependent but the dump is in the wrong order.
Here we go with the error:
rake aborted!
(3.3ms) CREATE MATERIALIZED VIEW downloads_gems_per_month
WITH (
timescaledb.continuous
,timescaledb.materialized_only=true
,timescaledb.finalized=true
) AS
SELECT time_bucket('P1M'::interval, ts) AS ts,
gem_name,
count(*) AS downloads
FROM downloads_gems_per_day
GROUP BY (time_bucket('P1M'::interval, ts)), gem_name
WITH NO DATA;
ActiveRecord::StatementInvalid: PG::UndefinedTable: ERROR: relation "downloads_gems_per_day" does not exist (ActiveRecord::StatementInvalid)
LINE 11: FROM downloads_gems_per_day
^
/Users/jonatasdp/code/rubygems.org/db/downloads_schema.rb:622:in `block in <main>'
Because the schema file is bringing _per_day before the _per_hour.
The text was updated successfully, but these errors were encountered:
I fall into a problem while implementing rubygems/rubygems.org#4642 which I have multiple views that are interdependent but the dump is in the wrong order.
Here we go with the error:
Because the schema file is bringing
_per_day
before the_per_hour
.The text was updated successfully, but these errors were encountered: