Getting rid of old payment gateways

This commit is contained in:
Yağızhan authored and GitHub committed 2021-08-10 06:19:24 +00:00
1 parent 5c7094971e
commit a4681cd429
1 file changed
+7 -1
+7 -1
View File
@@ -10,13 +10,19 @@
* with this source code in the file LICENSE
*/
/**
* Unnamed new release
* 4.22 betas
*/
class BBPatch_24 extends BBPatchAbstract
{
public function patch()
{
// Clearing leftovers from deleted payment adapters
$q = "DELETE FROM `pay_gateway` WHERE `gateway` = 'AlertPay' OR `gateway` = 'WebToPay' OR `gateway` = 'Payza' OR `gateway` = 'SinglePay'";
$this->execSql($q);
// Setting up the new custom pages extension
$q = "CREATE TABLE IF NOT EXISTS `custom_pages` (`id` int(11) NOT NULL AUTO_INCREMENT, `title` varchar(255) NOT NULL, `description` varchar(555) NOT NULL, `keywords` varchar(555) NOT NULL, `content` text NOT NULL, `slug` varchar(255) NOT NULL, `created_at` timestamp NOT NULL DEFAULT current_timestamp(), PRIMARY KEY (`id`)) ENGINE=MyISAM DEFAULT CHARSET=utf8";
$this->execSql($q);
}