Closed knoxjeffrey closed 1 year ago
Is this just a case of moving views(stream) unless defined?(Scenic)
to the end of the tables
method in Timescaledb::SchemaDumper
?
Hi @knoxjeffrey! Good catch! I didn't check the order. Probably that is the case! I'll try to provide the update soon.
Hi @knoxjeffrey ! please, review #44 if you have some time. I'd love to have an extra eye here as I did a little refactoring in the scenic part. Not sure if you use the lib or not.
Hi @knoxjeffrey ! please, review #44 if you have some time. I'd love to have an extra eye here as I did a little refactoring in the scenic part. Not sure if you use the lib or not.
Hi @jonatas, that looks great, cheers for sorting that with the PR. Sadly I'm not using the Scenic gem yet though to give that part a quick test on my own codebase.
I think this may have come from the most recent update to dump hypertables and retention policies last, for compatibility with foreign keys.
The call to
views(stream) unless defined?(Scenic)
in turn callstimescale_continuous_aggregates(stream)
and this all happens beforetimescale_hypertables(stream)
. This results in theschema.rb
being out of order with continuous aggregates trying to be created before the hypertables.