mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-26 20:16:15 +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>
|
||||
/// Translate Table name into database table name - including prefixes.
|
||||
/// </summary>
|
||||
public virtual string TableDbName(string srcTable) {
|
||||
return _interpreter.PrefixTableName(String.Concat(FormatPrefix(FeaturePrefix), srcTable));
|
||||
public virtual string TableDbName(string srcTable, string featurePrefixOverride = null) {
|
||||
return _interpreter.PrefixTableName(FormatPrefix(featurePrefixOverride ?? FeaturePrefix) + srcTable);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user