updateSchema method
Update table schema, supports chain operations
tableName Table name
Example:
final taskId = await db.updateSchema('users')
.addField('age', DataType.integer)
.removeField('old_field')
.renameField('name', 'full_name')
.modifyField('email', (field) => field.unique());
更新表结构,支持链式操作
tableName 表名
Implementation
@override
SchemaBuilder updateSchema(String tableName) {
_checkSystemTableAccess(tableName, 'its schema cannot be modified manually',
'ToStore.updateSchema');
return SchemaBuilder(_impl, tableName);
}