{
RelationalSchemaUpgrade rsu = (RelationalSchemaUpgrade)u;
if (rsu.getDataSource().getSchema() == schema)
{
RelationalSchemaUpgradeState state = (RelationalSchemaUpgradeState)Upgrade.getState(stateMap, u);
do
{
prev = (SchemaVersion)version.clone();
appendUpgradeStepStart(buf, state.getSchema(), version);
try
{
m_appender = innerAppender;
upgrade(rsu, state, version);
}
finally
{
m_appender = outerAppender;
}
appendUpgradeStepEnd(buf, state.getSchema(), version, prev, null);
m_appender.appendSQL(buf.toString());
buf.setLength(0);
}
while (version.getStep() >= 0);