namespace PT renamed to pt
This commit is contained in:
@@ -78,19 +78,19 @@ bool Migration::do_migration(morm::ModelConnector * model_connector, morm::Model
|
||||
migration.table_version = current_table_version;
|
||||
migration_status = migration.save();
|
||||
|
||||
PT::Log * log = model_connector->get_logger();
|
||||
pt::Log * log = model_connector->get_logger();
|
||||
|
||||
if( log )
|
||||
{
|
||||
(*log) << PT::Log::log2 << "Migration: table " << table_name << " has been migrated to version " << current_table_version << PT::Log::logend;
|
||||
(*log) << pt::Log::log2 << "Migration: table " << table_name << " has been migrated to version " << current_table_version << pt::Log::logend;
|
||||
}
|
||||
|
||||
if( !migration_status && log )
|
||||
{
|
||||
(*log) << PT::Log::log1 << "Migration: table " << table_name << " has been migrated to version " << current_table_version;
|
||||
(*log) << " but there was a problem with saving this information in the migration table." << PT::Log::logend;
|
||||
(*log) << "Make sure the migration table is created and save/update following record there:" << PT::Log::logend;
|
||||
(*log) << migration << PT::Log::logend;
|
||||
(*log) << pt::Log::log1 << "Migration: table " << table_name << " has been migrated to version " << current_table_version;
|
||||
(*log) << " but there was a problem with saving this information in the migration table." << pt::Log::logend;
|
||||
(*log) << "Make sure the migration table is created and save/update following record there:" << pt::Log::logend;
|
||||
(*log) << migration << pt::Log::logend;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user