mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-04-05 21:01:35 +08:00
Allow Feature Prefix override in TableDbName (#7642)
This commit is contained in:
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>
|
||||
|
Loading…
Reference in New Issue
Block a user