writing migration scripts python flask code example Example: flask migrate $ flask db migrate -m "Initial migration."