Skip to content

Conversation

@m-burst
Copy link
Contributor

@m-burst m-burst commented Dec 13, 2017

The psqlextra's DatabaseWrapper.prepare_database() attempts to execute CREATE EXTENSION IF NOT EXISTS hstore.
The problem is, when the Postgres user is not a superuser, this crashes with a ProgrammingError, which doesn't allow any migrations to run even if no HStoreFields are used in the models.
This pull request changes the behavior to print a log message in this case instead of crashing.

Copy link
Contributor

@Photonios Photonios left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent! Thanks for the PR :)

@Photonios Photonios merged commit c620fcd into SectorLabs:master Dec 13, 2017
@m-burst m-burst deleted the patch-1 branch December 13, 2017 13:01
@m-burst
Copy link
Contributor Author

m-burst commented Dec 13, 2017

Thanks for merging! When will you be able to release this to PyPI?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants