flask create a migration of a model add an id code example Example: flask db migrate flask db init flask db migrate flask db upgrade