Subtext.Installation.SqlInstaller.NeedsUpgrade C# (CSharp) Method

NeedsUpgrade() public method

Gets a value indicating whether the subtext installation needs an upgrade to occur.
public NeedsUpgrade ( System.Version installationVersion ) : bool
installationVersion System.Version
return bool
        public bool NeedsUpgrade(Version installationVersion)
        {
            if (installationVersion >= VersionInfo.FrameworkVersion)
            {
                return false;
            }

            if (installationVersion == null)
            {
                //This is the base version.  We need to hardcode this
                //because Subtext 1.0 didn't write the assembly version
                //into the database.
                installationVersion = new Version(1, 0, 0, 0);
            }
            string[] scripts = ListInstallationScripts(installationVersion, VersionInfo.FrameworkVersion);
            return scripts.Length > 0;
        }