Skip to content

Commit

Permalink
[TASK] Update DB Schema with the latest changes from phpList3 (#302)
Browse files Browse the repository at this point in the history
  • Loading branch information
xh3n1 authored and oliverklee committed Feb 19, 2019
1 parent e6bbcd7 commit c07f682
Showing 1 changed file with 32 additions and 30 deletions.
62 changes: 32 additions & 30 deletions resources/Database/Schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -71,25 +71,26 @@ CREATE TABLE `phplist_bounce` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`date` datetime DEFAULT NULL,
`header` text,
`data` blob,
`data` mediumblob,
`status` varchar(255) DEFAULT NULL,
`comment` text,
PRIMARY KEY (`id`),
KEY `dateindex` (`date`)
) ENGINE=InnoDB AUTO_INCREMENT=2168 DEFAULT CHARSET=utf8;

DROP TABLE IF EXISTS `phplist_bounceregex`;
CREATE TABLE `phplist_bounceregex` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`regex` varchar(255) DEFAULT NULL,
`action` varchar(255) DEFAULT NULL,
`listorder` int(11) DEFAULT '0',
`admin` int(11) DEFAULT NULL,
`comment` text,
`status` varchar(255) DEFAULT NULL,
`count` int(11) DEFAULT '0',
PRIMARY KEY (`id`),
UNIQUE KEY `regex` (`regex`)
DROP TABLE IF EXISTS phplist_bounceregex;
CREATE TABLE phplist_bounceregex (
id int(11) NOT NULL AUTO_INCREMENT,
regex varchar(2083) DEFAULT NULL,
regexhash char(32) DEFAULT NULL,
action varchar(255) DEFAULT NULL,
listorder int(11) DEFAULT '0',
admin int(11) DEFAULT NULL,
comment text,
status varchar(255) DEFAULT NULL,
count int(11) DEFAULT '0',
PRIMARY KEY (id),
UNIQUE KEY regex (regexhash)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

DROP TABLE IF EXISTS `phplist_bounceregex_bounce`;
Expand Down Expand Up @@ -152,14 +153,15 @@ CREATE TABLE `phplist_linktrack` (
KEY `miduidindex` (`messageid`,`userid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

DROP TABLE IF EXISTS `phplist_linktrack_forward`;
CREATE TABLE `phplist_linktrack_forward` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`url` varchar(255) DEFAULT NULL,
`personalise` tinyint(4) DEFAULT '0',
PRIMARY KEY (`id`),
UNIQUE KEY `urlunique` (`url`),
KEY `urlindex` (`url`)
DROP TABLE IF EXISTS phplist_linktrack_forward;
CREATE TABLE phplist_linktrack_forward (
id int(11) NOT NULL AUTO_INCREMENT,
url varchar(2083) DEFAULT NULL,
urlhash char(32) DEFAULT NULL,
personalise tinyint(4) DEFAULT '0',
PRIMARY KEY (id),
UNIQUE KEY urlunique (urlhash),
KEY urlindex (url(255))
) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=utf8;

DROP TABLE IF EXISTS `phplist_linktrack_ml`;
Expand Down Expand Up @@ -413,15 +415,15 @@ CREATE TABLE `phplist_translation` (
KEY `lanidx` (`lan`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

DROP TABLE IF EXISTS `phplist_urlcache`;
CREATE TABLE `phplist_urlcache` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`url` varchar(255) NOT NULL,
`lastmodified` int(11) DEFAULT NULL,
`added` datetime DEFAULT NULL,
`content` mediumtext,
PRIMARY KEY (`id`),
KEY `urlindex` (`url`)
DROP TABLE IF EXISTS phplist_urlcache;
CREATE TABLE phplist_urlcache (
id int(11) NOT NULL AUTO_INCREMENT,
url varchar(2083) NOT NULL,
lastmodified int(11) DEFAULT NULL,
added datetime DEFAULT NULL,
content mediumtext,
PRIMARY KEY (id),
KEY urlindex (url(255))
) ENGINE=InnoDB AUTO_INCREMENT=20 DEFAULT CHARSET=utf8;

DROP TABLE IF EXISTS `phplist_user_attribute`;
Expand Down

0 comments on commit c07f682

Please sign in to comment.