diff options
author | Mike Macgirvin <mike@macgirvin.com> | 2010-07-22 02:13:39 -0700 |
---|---|---|
committer | Mike Macgirvin <mike@macgirvin.com> | 2010-07-22 02:13:39 -0700 |
commit | 11f2eaa16dc3e41b758235e7bc1a281e19aca96e (patch) | |
tree | 3d2aff70c4efa8c51f13c3942bf6f65f1c9ad409 /update.sql | |
parent | a9befec59e2e608b507e6d1f99a5a2fe70978c3f (diff) | |
download | volse-hubzilla-11f2eaa16dc3e41b758235e7bc1a281e19aca96e.tar.gz volse-hubzilla-11f2eaa16dc3e41b758235e7bc1a281e19aca96e.tar.bz2 volse-hubzilla-11f2eaa16dc3e41b758235e7bc1a281e19aca96e.zip |
introduction cleanup - email notification flags
Diffstat (limited to 'update.sql')
-rw-r--r-- | update.sql | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/update.sql b/update.sql index a576adb88..ac11812cd 100644 --- a/update.sql +++ b/update.sql @@ -1,21 +1,21 @@ - ALTER TABLE `item` CHANGE `allow_uid` `allow_cid` MEDIUMTEXT CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL , -CHANGE `deny_uid` `deny_cid` MEDIUMTEXT CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL ; +CREATE TABLE IF NOT EXISTS `mail` ( + `id` int(10) unsigned NOT NULL, + `uid` int(10) unsigned NOT NULL, + `from-name` char(255) NOT NULL, + `from-photo` char(255) NOT NULL, + `from-url` char(255) NOT NULL, + `contact-id` char(255) NOT NULL, + `title` char(255) NOT NULL, + `body` text NOT NULL, + `delivered` tinyint(1) NOT NULL, + `seen` tinyint(1) NOT NULL, + `replied` tinyint(1) NOT NULL, + `uri` char(255) NOT NULL, + `parent-uri` char(255) NOT NULL, + `created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8; - ALTER TABLE `item` CHANGE `last-child` `last-child` TINYINT( 1 ) UNSIGNED NOT NULL DEFAULT '1'; +ALTER TABLE `user` ADD `notify-flags` INT(11) UNSIGNED NOT NULL DEFAULT 65535 AFTER `blocked`; -alter table `item` insert `remote-id` char( 255 ) character set utf-8 collate utf8_general_ci NOT NULL; - -ALTER TABLE `item` ADD `remote-name` CHAR( 255 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL AFTER `remote-id` , -ADD `remote-link` CHAR( 255 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL AFTER `remote-name` , -ADD `remote-avatar` CHAR( 255 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL AFTER `remote-link` ; - -ALTER TABLE `item` ADD `owner-name` CHAR( 255 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL AFTER `contact-id` , -ADD `owner-link` CHAR( 255 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL AFTER `owner-name` , -ADD `owner-avatar` CHAR( 255 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL AFTER `owner-link` ; - -ALTER TABLE `user` ADD `pwdreset` CHAR( 255 ) NOT NULL AFTER `blocked` ; - - ALTER TABLE `challenge` ADD `type` CHAR( 255 ) NOT NULL AFTER `expire` , -ADD `last_update` CHAR( 255 ) NOT NULL AFTER `type` ; - -ALTER TABLE `contact` ADD `last-update` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00' AFTER `ret-pubkey` ; +-------------- |