Skip to content

Commit

Permalink
4.3.0 - db changes
Browse files Browse the repository at this point in the history
  • Loading branch information
sendtogeo committed Dec 22, 2019
1 parent 8a1316a commit 0e51861
Show file tree
Hide file tree
Showing 3 changed files with 435 additions and 375 deletions.
24 changes: 24 additions & 0 deletions install/data/seopanel.sql
Original file line number Diff line number Diff line change
Expand Up @@ -1340,6 +1340,30 @@ ALTER TABLE `website_analytics`
ADD CONSTRAINT `source_analytics_delete` FOREIGN KEY (`source_id`) REFERENCES `analytic_sources` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION,
ADD CONSTRAINT `website_analytics_delete` FOREIGN KEY (`website_id`) REFERENCES `websites` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION;

--
-- Seo Panel 4.3.0 changes
--

UPDATE `searchengines` SET `regex` = '<div.*?class="?g.*?>.*?<div.*?class="r"*?>.*?<a href="(.*?)".*?>.*?<h3.*?>(.*?)<\\/h3>' WHERE `url` LIKE '%google%';

CREATE TABLE `sync_searchengines` (
`id` int(11) NOT NULL,
`sync_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`status` tinyint(1) NOT NULL DEFAULT '0',
`result` text COLLATE utf8_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

ALTER TABLE `sync_searchengines` ADD PRIMARY KEY (`id`);
ALTER TABLE `sync_searchengines` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;


INSERT INTO `settings` (`set_label`, `set_name`, `set_val`, `set_category`, `set_type`, `display`) VALUES
('Enable Sendgrid API', 'SP_SENDGRID_API', '0', 'mail', 'bool', 1);

update settings set set_category='mail' where
set_name in ('SP_SMTP_MAIL', 'SP_SMTP_HOST', 'SP_SMTP_USERNAME', 'SP_SMTP_PASSWORD', 'SP_SMTP_PORT', 'SP_MAIL_ENCRYPTION');


/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
Loading

0 comments on commit 0e51861

Please sign in to comment.