#19011: Fixing table check on Setup

Work Item: 19011

--HG--
branch : 1.x
This commit is contained in:
filetek
2012-09-19 12:45:48 -07:00
parent fb60372c74
commit 62023ea6aa

View File

@@ -115,7 +115,7 @@ namespace Orchard.Setup.Services {
// check if the database is already created (in case an exception occured in the second phase)
var schemaBuilder = new SchemaBuilder(environment.Resolve<IDataMigrationInterpreter>());
try {
var tablePrefix = String.IsNullOrEmpty(_shellSettings.DataTablePrefix) ? "" : _shellSettings.DataTablePrefix + "_";
var tablePrefix = String.IsNullOrEmpty(shellSettings.DataTablePrefix) ? "" : shellSettings.DataTablePrefix + "_";
schemaBuilder.ExecuteSql("SELECT * FROM " + tablePrefix + "Settings_ShellDescriptorRecord");
}
catch {