Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from
Jul 6, 2024

Conversation

pdelboca
Copy link

@pdelboca pdelboca commented Jul 5, 2024

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.

@pdelboca pdelboca changed the title Fix init db command [dev-v1.0] Fix init db command Jul 5, 2024
@tino097 tino097 merged commit cf34d53 into dathere:dev-v1.0 Jul 6, 2024
@tino097 tino097 added the 1.0.2 label Jul 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants