install.mysql.utf8.sql
3.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
-- Basic table from 1.0
CREATE TABLE IF NOT EXISTS `#__jmap` (
`id` int(11) unsigned NOT NULL auto_increment,
`type` varchar(100) NOT NULL,
`name` text NOT NULL,
`description` text NOT NULL,
`checked_out` int(11) unsigned NOT NULL default '0',
`checked_out_time` datetime NOT NULL default '0000-00-00 00:00:00',
`published` tinyint(1) NOT NULL default '0',
`ordering` int(11) NOT NULL default '0',
`sqlquery` text NULL,
`sqlquery_managed` text NULL,
`params` text NOT NULL,
PRIMARY KEY (`id`),
KEY `published` (`published`)
) ENGINE=InnoDB CHARACTER SET `utf8` ;
INSERT INTO `#__jmap` (`id`, `type`, `name`, `description`, `checked_out`, `checked_out_time`, `published`, `ordering`, `sqlquery`, `sqlquery_managed`, `params`) VALUES (1, 'content', 'Content', 'Default contents source', 0, '0000-00-00 00:00:00', 1, 1, '', '', '') ON DUPLICATE KEY UPDATE `id` = 1;
-- Updates on version 2.0
CREATE TABLE IF NOT EXISTS `#__jmap_pingomatic` (
`id` INT NOT NULL AUTO_INCREMENT PRIMARY KEY ,
`title` VARCHAR( 255 ) NOT NULL ,
`blogurl` VARCHAR( 255 ) NOT NULL ,
`rssurl` VARCHAR( 255 ) NULL ,
`services` TEXT NOT NULL ,
`lastping` DATETIME NULL ,
`checked_out` INT NOT NULL DEFAULT '0',
`checked_out_time` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00'
) ENGINE=InnoDB CHARACTER SET `utf8` ;
-- Updates on version 2.1
CREATE TABLE IF NOT EXISTS `#__jmap_menu_priorities` (
`id` INT NOT NULL ,
`priority` CHAR( 3 ) NOT NULL ,
PRIMARY KEY (`id`)
) ENGINE=InnoDB CHARACTER SET `utf8` ;
-- Updates on version 3.0
CREATE TABLE IF NOT EXISTS `#__jmap_datasets` (
`id` int(11) unsigned NOT NULL auto_increment,
`name` text NOT NULL,
`description` text NOT NULL,
`checked_out` int(11) unsigned NOT NULL default '0',
`checked_out_time` datetime NOT NULL default '0000-00-00 00:00:00',
`published` tinyint(1) NOT NULL default '0',
`sources` text NOT NULL,
PRIMARY KEY (`id`),
KEY `published` (`published`)
) ENGINE=InnoDB CHARACTER SET `utf8` ;
CREATE TABLE IF NOT EXISTS `#__jmap_dss_relations` (
`datasetid` int(11) NOT NULL,
`datasourceid` int(11) NOT NULL,
PRIMARY KEY (`datasetid`, `datasourceid`)
) ENGINE=InnoDB CHARACTER SET `utf8` ;
CREATE TABLE IF NOT EXISTS `#__jmap_cats_priorities` (
`id` INT NOT NULL ,
`priority` CHAR( 3 ) NOT NULL ,
PRIMARY KEY (`id`)
) ENGINE=InnoDB CHARACTER SET `utf8` ;
-- Updates on version 3.1
CREATE TABLE IF NOT EXISTS `#__jmap_google` (
`id` INT NOT NULL,
`token` TEXT NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- Updates on version 3.2
CREATE TABLE IF NOT EXISTS `#__jmap_metainfo` (
`id` int(11) unsigned NOT NULL auto_increment,
`linkurl` varchar(600) NOT NULL,
`meta_title` text NULL,
`meta_desc` text NULL,
`meta_image` VARCHAR(255) NULL,
`robots` varchar(255) NULL,
`published` tinyint(1) NOT NULL default '0',
PRIMARY KEY (`id`),
INDEX `robots` (`robots`),
INDEX `published` (`published`)
) ENGINE=InnoDB CHARACTER SET `utf8`;
-- Updates on version 4.6.4
CREATE TABLE IF NOT EXISTS `#__jmap_canonicals` (
`id` int(11) unsigned NOT NULL auto_increment,
`linkurl` varchar(600) NOT NULL,
`canonical` varchar(600) NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB CHARACTER SET `utf8`;
-- Updates on version 4.6
CREATE TABLE IF NOT EXISTS `#__jmap_headings` (
`id` int(11) unsigned NOT NULL auto_increment,
`linkurl` varchar(600) NOT NULL,
`h1` text NULL,
`h2` text NULL,
`h3` text NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB CHARACTER SET `utf8`;
-- Exceptions queries in reverse versioning order 10.0 -> 1.0
-- 4.3.1 token fix
ALTER TABLE `#__jmap_google` CHANGE `token` `token` TEXT;