Skip to content

Commit

Permalink
Merge branch 'naguissa-rebrand-ajaxify'
Browse files Browse the repository at this point in the history
  • Loading branch information
Naguissa committed Feb 9, 2022
1 parent b04c93f commit bd9188f
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion naguissa/thanksforposts/migrations/v_4_0_0.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,13 @@ public function get_needed_modules_array()
return array_values($acp_modules_array);
}

public function delete_old_ext_module()
{
$delete_sql = "DELETE FROM " . $this->table_prefix . "ext
WHERE ext_name LIKE 'gfksx/ThanksForPosts'";
$this->sql_query($delete_sql);
}

public function update_data()
{
$configs_array = array(
Expand Down Expand Up @@ -212,9 +219,13 @@ public function update_data()
$notifications_array = array(
array('custom', array(array($this, 'update_notifications_serialization')))
);
$old_ext_cleanup = array(
array('custom', array(array($this, 'delete_old_ext_module')))
);

$acp_modules_array = $this->get_needed_modules_array();

return array_merge($configs_array, $permissions_array, $notifications_array, $acp_modules_array);
return array_merge($configs_array, $permissions_array, $notifications_array, $old_ext_cleanup, $acp_modules_array);
}

public function revert_schema()
Expand Down

0 comments on commit bd9188f

Please sign in to comment.