Fixed and closed #455: meta-content is reset to defaults only on the first application start.

This commit is contained in:
Dario Solera 2010-01-20 16:00:02 +00:00
parent ceb228f937
commit e04e02ed9c
7 changed files with 58 additions and 44 deletions

View file

@ -13,7 +13,7 @@ namespace ScrewTurn.Wiki.Plugins.SqlServer {
/// </summary>
public class SqlServerSettingsStorageProvider : SqlSettingsStorageProviderBase {
private readonly ComponentInformation info = new ComponentInformation("SQL Server Settings Storage Provider", "ScrewTurn Software", "3.0.1.446", "http://www.screwturn.eu", "http://www.screwturn.eu/Version/SQLServerProv/Settings.txt");
private readonly ComponentInformation info = new ComponentInformation("SQL Server Settings Storage Provider", "ScrewTurn Software", "3.0.1.461", "http://www.screwturn.eu", "http://www.screwturn.eu/Version/SQLServerProv/Settings.txt");
private readonly SqlServerCommandBuilder commandBuilder = new SqlServerCommandBuilder();
@ -136,6 +136,7 @@ namespace ScrewTurn.Wiki.Plugins.SqlServer {
protected override void CreateOrUpdateDatabaseIfNecessary() {
if(!SchemaExists()) {
CreateStandardSchema();
isFirstStart = true;
}
if(SchemaNeedsUpdate()) {
// Run minor update batches...