protected function upgrade_db_mssql10() { $this->apply_options_mssql10(); // build the upgrade DDL first, incase dbsteward code wants to throw about something mssql10::build_upgrade($this->xml_file_a, $this->xml_file_b); // upgrade database to "B" with each stage file $this->mssql10->run_file(__DIR__ . '/testdata/upgrade_stage1_schema1.sql'); $this->mssql10->run_file(__DIR__ . '/testdata/upgrade_stage2_data1.sql'); $this->mssql10->run_file(__DIR__ . '/testdata/upgrade_stage3_schema1.sql'); $this->mssql10->run_file(__DIR__ . '/testdata/upgrade_stage4_data1.sql'); $old_db_doc = xml_parser::xml_composite(array($this->xml_file_a)); $new_db_doc = xml_parser::xml_composite(array($this->xml_file_b)); mssql10::build_upgrade('', $old_db_doc, $old_db_doc, array(), $this->output_prefix, $new_db_doc, $new_db_doc, array()); $this->mssql10->run_file($this->output_prefix . '_upgrade_stage1_schema1.sql'); $this->mssql10->run_file($this->output_prefix . '_upgrade_stage2_data1.sql'); $this->mssql10->run_file($this->output_prefix . '_upgrade_stage3_schema1.sql'); $this->mssql10->run_file($this->output_prefix . '_upgrade_stage4_data1.sql'); }