I have a table that looks like this
> select * from mytable
id value
0 1 hello world
1 2 hello_world
2 3 hello+world
I'm trying to impose an alembic check constraint, where values in value
cannot have the :
character. How would I do this using an alembic.op
object? What are the upgrade()
and downgrade()
functions?
Edit: The DB I'm using is Mysql.