table static method
Use to update an existing table's schema.
tableName
is the name of the table to be updated.
buildFunction
is a function that takes a Blueprint object as an argument.
make calls to the Blueprint object to define the schema to change.
Implementation
static String table(String tableName, Function(Blueprint) buildFunction) {
final blueprint = DB.connection()!.driver.initBlueprint(tableName, true);
buildFunction(blueprint);
return DB.connection()!.driver.executeBlueprint(blueprint);
}