Exemplo n.º 1
0
 /**
  * Apply the baseline, which is basically the database schema
  *
  * The sleep is added to prevent a CS to be recorded
  * with the same timestamp
  *
  * @return void
  * */
 private function applyBaseline()
 {
     $baseline_path = CodePax_DbVersioning_Files_Manager::getBaselineByVersion($this->latest_db_version);
     $this->sql_engine->executeBaseline($baseline_path);
     $this->db_versions_model->addVersion($this->latest_db_version, CodePax_DbVersions::TYPE_BASELINE);
     sleep(1);
 }