DB UPDATE! Drop your mail table and reload it from install/database.sql

This commit is contained in:
friendica 2012-12-03 21:30:36 -08:00
parent c5cace552b
commit 707397580c

View File

@ -593,35 +593,23 @@ CREATE TABLE IF NOT EXISTS `item_id` (
CREATE TABLE IF NOT EXISTS `mail` ( CREATE TABLE IF NOT EXISTS `mail` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT, `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`aid` int(10) unsigned NOT NULL DEFAULT '0', `mail_flags` int(10) unsigned NOT NULL DEFAULT '0',
`uid` int(10) unsigned NOT NULL, `author_xchan` char(255) NOT NULL DEFAULT '',
`guid` char(64) NOT NULL, `account_id` int(10) unsigned NOT NULL DEFAULT '0',
`from-name` char(255) NOT NULL, `channel_id` int(10) unsigned NOT NULL,
`from-photo` char(255) NOT NULL,
`from-url` char(255) NOT NULL,
`contact-id` char(255) NOT NULL,
`convid` int(11) NOT NULL,
`title` char(255) NOT NULL, `title` char(255) NOT NULL,
`body` mediumtext NOT NULL, `body` mediumtext NOT NULL,
`seen` tinyint(1) NOT NULL,
`reply` tinyint(1) NOT NULL DEFAULT '0',
`replied` tinyint(1) NOT NULL,
`unknown` tinyint(1) NOT NULL DEFAULT '0',
`uri` char(255) NOT NULL, `uri` char(255) NOT NULL,
`parent_uri` char(255) NOT NULL, `parent_uri` char(255) NOT NULL,
`created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', `created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
PRIMARY KEY (`id`), PRIMARY KEY (`id`),
KEY `reply` (`reply`),
KEY `uid` (`uid`),
KEY `guid` (`guid`),
KEY `seen` (`seen`),
KEY `uri` (`uri`), KEY `uri` (`uri`),
KEY `created` (`created`), KEY `created` (`created`),
KEY `convid` (`convid`), KEY `mail_flags` (`mail_flags`),
KEY `unknown` (`unknown`), KEY `author_xchan` (`author_xchan`),
KEY `contact-id` (`contact-id`), KEY `account_id` (`account_id`),
KEY `parent_uri` (`parent_uri`), KEY `channel_id` (`channel_id`),
KEY `aid` (`aid`) KEY `parent_uri` (`parent_uri`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8; ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS `manage` ( CREATE TABLE IF NOT EXISTS `manage` (