def upgrade(): op.add_column('my_table', sa.Column('my_column', sa.String())) op.execute('UPDATE my_table SET my_column=my_other_column') op.alter_column('my_table', 'my_column', nullable=False)