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

Fix db migration with postgres #1679

Merged
merged 2 commits into from Jun 14, 2019

Commits on Jun 13, 2019

  1. Fix db migration with postgres

    PostgreSQL (and Oracle and SQLite) use sequences for autoincrement columns.
    If no sequence is given, one will be created automatically which clashes
    with the required one in `models.py`
    We have to create the required sequence manually but only if the backend
    supports it.
    Actually this affects all migration scripts which create columns with an
    auto_increment attribute.
    
    Fixes #1676
    plettich committed Jun 13, 2019
    Copy the full SHA
    401fad3 View commit details
    Browse the repository at this point in the history
  2. Fix remarks from review

    plettich committed Jun 13, 2019
    Copy the full SHA
    beb31af View commit details
    Browse the repository at this point in the history