Skip to content
This repository has been archived by the owner on Jan 26, 2025. It is now read-only.

Commit

Permalink
Remove extension config on uninstallation
Browse files Browse the repository at this point in the history
  • Loading branch information
cypherbits committed Oct 30, 2020
1 parent 38776fd commit 944c513
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
23 changes: 23 additions & 0 deletions migrations/install_acp_module.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,27 @@ public function update_data()
)),
);
}

public function revert_data(){
return array(
array('config.remove', array('cypherbits_onionbb_installed')),

array('config.remove', array('cypherbits_onionbb_checkIP')),
array('config.remove', array('cypherbits_onionbb_checkIP_list')),

array('config.remove', array('cypherbits_onionbb_blockTor2Web')),
array('config.remove', array('cypherbits_onionbb_blockTor2Web_DNT')),

array('config.remove', array('cypherbits_onionbb_host')),
array('config.remove', array('cypherbits_onionbb_host_list')),

array('config.remove', array('cypherbits_onionbb_userAgents')),
array('config.remove', array('cypherbits_onionbb_userAgentsTB8')),

array('config.remove', array('cypherbits_onionbb_headers_referrer')),
array('config.remove', array('cypherbits_onionbb_headers_contentType')),
array('config.remove', array('cypherbits_onionbb_headers_frame')),
array('config.remove', array('cypherbits_onionbb_headers_content')),
);
}
}
2 changes: 1 addition & 1 deletion migrations/install_sample_schema.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public function effectively_installed()

public static function depends_on()
{
return array('\phpbb\db\migration\data\v320\v320');
return array('\phpbb\db\migration\data\v330\v330');
}

/**
Expand Down

0 comments on commit 944c513

Please sign in to comment.