Alembic

From UVOO Tech Wiki
Revision as of 02:38, 7 May 2019 by 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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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())