Exemplo n.º 1
0
        }//_runConcurrentSchemaUpdates()

        private bool _runNonVersionScripts(CswSchemaUpdater CswSchemaUpdater, List <CswSchemaUpdateDriver> ScriptCollection, CswConsoleOutput CswConsoleOutput)
        {
            bool ReturnVal = true;

            for (int idx = 0; ReturnVal && (idx < ScriptCollection.Count); idx++)
            {
                CswSchemaUpdateDriver CurrentUpdateDriver = ScriptCollection[idx];

                string ScriptDescription = CurrentUpdateDriver.SchemaVersion.ToString() + ": " + CurrentUpdateDriver.Description + ": ";
                ReturnVal = CswSchemaUpdater.runArbitraryScript(CurrentUpdateDriver);
                if (ReturnVal)
                {
                    CswConsoleOutput.write(ScriptDescription + "succeeded" + _Separator_NuLine);
                }
                else
                {
                    CswConsoleOutput.write(ScriptDescription + "failed: " + CurrentUpdateDriver.Message + _Separator_NuLine);
                }
            }

            return(ReturnVal);
        }//_runNonVersionScripts()