* @param $patch String Path to the patch file
* @param $fullpath Boolean Whether to treat $patch path as a relative or not
*/
- protected function addIndex( $table, $index, $patch, $fullpath = false ) {
+ public function addIndex( $table, $index, $patch, $fullpath = false ) {
if ( $this->db->indexExists( $table, $index ) ) {
$this->output( "...$index key already set on $table table.\n" );
} else {
* @param $patch String: Path to the patch file
* @param $fullpath Boolean: Whether to treat $patch path as a relative or not
*/
- protected function dropIndex( $table, $index, $patch, $fullpath = false ) {
+ public function dropIndex( $table, $index, $patch, $fullpath = false ) {
if ( $this->db->indexExists( $table, $index ) ) {
$this->output( "Dropping $index from table $table... " );
$this->applyPatch( $patch, $fullpath );