79089806

Date: 2024-10-15 12:02:37
Score: 1
Natty:
Report link

The code below worked for my situation

def upgrade():
    companytype = sa.Column('type', sa.Enum('type1', 'type2', name='companytype')
    companytype.create(op.get_bind())

    op.add_column('company', companytype, nullable=True))

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Lorhan Sohaky