mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-27 04:19:04 +08:00
Allow Feature Prefix override in TableDbName (#7642)
This commit is contained in:
committed by
Sébastien Ros
parent
b18afbe867
commit
ffeed7b285
@@ -33,8 +33,8 @@ namespace Orchard.Data.Migration.Schema {
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Translate Table name into database table name - including prefixes.
|
/// Translate Table name into database table name - including prefixes.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public virtual string TableDbName(string srcTable) {
|
public virtual string TableDbName(string srcTable, string featurePrefixOverride = null) {
|
||||||
return _interpreter.PrefixTableName(String.Concat(FormatPrefix(FeaturePrefix), srcTable));
|
return _interpreter.PrefixTableName(FormatPrefix(featurePrefixOverride ?? FeaturePrefix) + srcTable);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
Reference in New Issue
Block a user