Subversion Repositories cheapmusic

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
155 - 1
--
2
--This file includes the database changes of Seo Panel version from 1.2.0 to 2.0.2
3
--
4
 
5
--
6
-- Table structure for table `saturationresults`
7
--
8
 
9
CREATE TABLE IF NOT EXISTS `saturationresults` (
10
  `website_id` int(11) NOT NULL,
11
  `google` int(11) NOT NULL,
12
  `yahoo` int(11) NOT NULL,
13
  `msn` int(11) NOT NULL,
14
  `result_time` int(11) NOT NULL
15
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
16
 
17
 
18
--
19
-- Table structure for table `seotools`
20
--
21
 
22
DROP TABLE IF EXISTS `seotools`;
23
CREATE TABLE IF NOT EXISTS `seotools` (
24
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
25
  `name` varchar(100) NOT NULL,
26
  `url_section` varchar(100) NOT NULL,
27
  `user_access` tinyint(1) NOT NULL DEFAULT '1',
28
  `reportgen` tinyint(1) NOT NULL DEFAULT '1',
29
  `cron` tinyint(1) NOT NULL DEFAULT '0',
30
  `status` tinyint(1) NOT NULL DEFAULT '0',
31
  PRIMARY KEY (`id`)
32
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=7 ;
33
 
34
--
35
-- Dumping data for table `seotools`
36
--
37
 
38
INSERT INTO `seotools` (`id`, `name`, `url_section`, `user_access`, `reportgen`, `cron`, `status`) VALUES
39
(1, 'Keyword Position Checker', 'keyword-position-checker', 1, 1, 1, 1),
40
(2, 'Sitemap Generator', 'sitemap-generator', 1, 0, 0, 1),
41
(3, 'Rank Checker', 'rank-checker', 1, 1, 1, 1),
42
(4, 'Backlinks Checker', 'backlink-checker', 1, 1, 1, 1),
43
(5, 'Directory Submission', 'directory-submission', 1, 0, 0, 1),
44
(6, 'Search Engine Saturation', 'saturation-checker', 1, 1, 1, 1);
45
 
46
 
47
--
48
-- New column for users table
49
--
50
ALTER TABLE `users` ADD `created` INT( 11 ) NOT NULL AFTER `email`;
51
Update `users` set created=UNIX_TIMESTAMP() WHERE created=0;
52
 
53
 
54
--
55
-- New column for Seo Plugins table
56
--
57
ALTER TABLE `seoplugins` ADD `author` VARCHAR( 64 ) NOT NULL AFTER `name` ,
58
ADD `description` TEXT CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL AFTER `author` ,
59
ADD `version` VARCHAR( 8 ) NOT NULL AFTER `description` ,
60
ADD `website` VARCHAR( 255 ) NOT NULL AFTER `version`;
61
 
62
 
63
--
64
-- New column for Directory table
65
--
66
ALTER TABLE `directories` ADD `is_captcha` BOOL NOT NULL DEFAULT '0' AFTER `extra_val`;
67
 
68
 
69
--
70
-- Table structure for table `settings`
71
--
72
 
73
CREATE TABLE IF NOT EXISTS `settings` (
74
  `id` int(11) NOT NULL AUTO_INCREMENT,
75
  `set_label` varchar(64) NOT NULL,
76
  `set_name` varchar(64) NOT NULL,
77
  `set_val` text CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
78
  `set_type` enum('small','bool','medium','large','text') DEFAULT 'small',
79
  PRIMARY KEY (`id`),
80
  UNIQUE KEY `set_name` (`set_name`)
81
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=9 ;
82
 
83
--
84
-- Dumping data for table `settings`
85
--
86
 
87
INSERT INTO `settings` (`id`, `set_label`, `set_name`, `set_val`, `set_type`) VALUES
88
(1, 'Seo Panel Title', 'SP_TITLE', 'Seo Panel: World\'s first seo control panel for multiple web sites', 'large'),
89
(2, 'Seo Panel Description', 'SP_DESCRIPTION', 'A complete free control panel for managing search engine optimization of your websites. It containing lots of hot seo tools to increase and track the performace your websites. Its an open source software and also you can develop your own seo plugins for seo panel.', 'text'),
90
(3, 'Seo Panel Keywords', 'SP_KEYWORDS', 'Seo Panel,seo control panel,search engine optimization panel,seo tools kit,keyword rank checker,google pagerank checker,alexa rank checker,sitemap generator,meta tag generator,back link checker,Website Submission tool', 'text'),
91
(4, 'Number of entries per page', 'SP_PAGINGNO', '10', 'small'),
92
(5, 'Delay between each spider crawl(seconds)', 'SP_CRAWL_DELAY', '2', 'small'),
93
(6, 'Allow user to generate reports', 'SP_USER_GEN_REPORT', '0', 'bool'),
94
(7, 'Image hotlink protection enabled', 'SP_HOTLINKING', '0', 'bool'),
95
(8, 'User registration interface', 'SP_USER_REGISTRATION', '1', 'bool');
96
 
97
 
98
--
99
-- random title and description to websites table
100
--
101
ALTER TABLE `websites` ADD `title2` VARCHAR( 100 ) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL AFTER `keywords` ,
102
ADD `title3` VARCHAR( 100 ) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL AFTER `title2` ,
103
ADD `title4` VARCHAR( 100 ) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL AFTER `title3` ,
104
ADD `title5` VARCHAR( 100 ) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL AFTER `title4` ,
105
ADD `description2` TEXT CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL AFTER `title5` ,
106
ADD `description3` TEXT CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL AFTER `description2` ,
107
ADD `description4` TEXT CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL AFTER `description3` ,
108
ADD `description5` TEXT CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL AFTER `description4`;
109
 
110
--
111
-- Table structure for table `skipdirectories`
112
--
113
 
114
CREATE TABLE IF NOT EXISTS `skipdirectories` (
115
  `id` int(11) NOT NULL AUTO_INCREMENT,
116
  `website_id` int(11) NOT NULL,
117
  `directory_id` int(11) NOT NULL,
118
  PRIMARY KEY (`id`),
119
  UNIQUE KEY `website_id` (`website_id`,`directory_id`)
120
);