dathere / datapusher-plus

A standalone web service that pushes data into the CKAN Datastore fast & reliably. It pushes real good!
GNU Affero General Public License v3.0
27 stars 21 forks source link

[dev-v1.0] Fix init db command #151

Closed pdelboca closed 2 months ago

pdelboca commented 3 months ago

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.

Note: I'm also applying some pep8 style fixes.