Skip to content
Snippets Groups Projects
  • Ben Ford's avatar
    4edd2484
    alembic: Fix errors during upgrade head. · 4edd2484
    Ben Ford authored
    When trying to upgrade using alembic, a couple different errors kept
    popping up that prevented the upgrade. An additional parameter was
    needed when changing the schema for mwi_subscribe_replaces_unsolicited
    from an integer to an enum. When changing from a string to an enum, the
    type needed to be cast for postgresql. The other issue was a parameter
    being used during column creation that did not exist.
    
    After fixing the upgrade process, it revealed errors with the downgrade
    process. One was a variable not being defined in the downgrade function,
    and the other was tables not existing when using MySQL. This was due to
    a context check that should have encompassed MySQL, but in the end was
    not doing so.
    
    Change-Id: Ib4d70cf3ce5080023a50be496272a777b55d6c8e
    4edd2484
    History
    alembic: Fix errors during upgrade head.
    Ben Ford authored
    When trying to upgrade using alembic, a couple different errors kept
    popping up that prevented the upgrade. An additional parameter was
    needed when changing the schema for mwi_subscribe_replaces_unsolicited
    from an integer to an enum. When changing from a string to an enum, the
    type needed to be cast for postgresql. The other issue was a parameter
    being used during column creation that did not exist.
    
    After fixing the upgrade process, it revealed errors with the downgrade
    process. One was a variable not being defined in the downgrade function,
    and the other was tables not existing when using MySQL. This was due to
    a context check that should have encompassed MySQL, but in the end was
    not doing so.
    
    Change-Id: Ib4d70cf3ce5080023a50be496272a777b55d6c8e