Exemplo n.º 1
0
 /**
  * Returns the structure related change scripts list from
  * the filesystem
  *
  * This method may be called outside the
  * overall versioning process to simply
  * return a list of change scripts starting
  * with the @see $latest_db_version
  *
  * The returned array looks like this:
  * Array (
  * 	[1.1.2] => /var/www/site/dbv/change_scripts/1.1.2.sql
  * 	[1.1.3] => /var/www/site/dbv/change_scripts/1.1.3.sql
  * 	)
  *
  * @return array
  * */
 public final function getChangeScripts()
 {
     return CodePax_DbVersioning_Files_Manager::getChangeScriptsByVersion($this->latest_db_version);
 }
Exemplo n.º 2
0
 /**
  * Returns the structure related change scripts list from
  * the filesystem
  *
  * This method may be called outside the
  * overall versioning process to simply
  * return a list of change scripts starting
  * with the @see $latest_db_version
  *
  * The returned array looks like this:
  * Array (
  * 	[1.1.2] => /var/www/site/dbv/change_scripts/1.1.2.sql
  * 	[1.1.3] => /var/www/site/dbv/change_scripts/1.1.3.sql
  * 	)
  *
  * @return array
  * */
 public final function getChangeScripts()
 {
     $filesManager = new CodePax_DbVersioning_Files_Manager($this->configuration);
     return $filesManager->getChangeScriptsByVersion($this->latest_db_version);
 }