Difference between revisions of "Alembic"

From UVOO Tech Wiki
Jump to navigation Jump to search
imported>Jeremy-busk
(Created page with "# Issues With Alembic Enums & Flask * https://stackoverflow.com/questions/37848815/sqlalchemy-postgresql-enum-does-not-create-type-on-db-migrate Edit migration version and a...")
 
(No difference)

Latest revision as of 02:38, 7 May 2019

Issues With Alembic Enums & Flask

Edit migration version and add something like this above op_add column

from sqlalchemy.dialects import postgresql


    keycipher = postgresql.ENUM('ed25519', 'rsa', 'keycipher', name='keycipher')
    keycipher.create(op.get_bind())
    keyformat = postgresql.ENUM('openssh', 'pem', 'pkcs12', name='keyformat')
    keyformat.create(op.get_bind())