This PR fixes an issue with the new init_tables() method.
Running meta.metadata.create_all(meta.engine) will create the whole CKAN database among with all the tables that plugins add to the Metadata object. This creates problems when pipelining datapusher-plus database initialization with other plugins.
With this change, I'm only creating the 3 tables of this extension.
This PR fixes an issue with the new
init_tables()
method.Running
meta.metadata.create_all(meta.engine)
will create the whole CKAN database among with all the tables that plugins add to theMetadata
object. This creates problems when pipeliningdatapusher-plus
database initialization with other plugins.With this change, I'm only creating the 3 tables of this extension.
Note: I'm also applying some pep8 style fixes.