diff options
author | friendica <info@friendica.com> | 2012-02-26 18:53:48 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-02-26 18:53:48 -0800 |
commit | fc036210fb599cff936b647689362ebacf86a16b (patch) | |
tree | e216e1fa6007b8bbe4aa994cb7c9a7db6d8a23b9 /update.php | |
parent | 6bc48b29ccdab1c9d48f159282f5dbd8eaa5d5ef (diff) | |
download | volse-hubzilla-fc036210fb599cff936b647689362ebacf86a16b.tar.gz volse-hubzilla-fc036210fb599cff936b647689362ebacf86a16b.tar.bz2 volse-hubzilla-fc036210fb599cff936b647689362ebacf86a16b.zip |
spam db
Diffstat (limited to 'update.php')
-rwxr-xr-x | update.php | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/update.php b/update.php index 8a2d891ca..865c6175e 100755 --- a/update.php +++ b/update.php @@ -1,6 +1,6 @@ <?php -define( 'UPDATE_VERSION' , 1127 ); +define( 'UPDATE_VERSION' , 1128 ); /** * @@ -1094,3 +1094,18 @@ function update_1126() { q("ALTER TABLE `mailacct` ADD `action` INT NOT NULL AFTER `pass`, ADD `movetofolder` CHAR(255) NOT NULL AFTER `action`"); } + +function update_1127() { + q("CREATE TABLE IF NOT EXISTS `spam` ( + `id` INT NOT NULL AUTO_INCREMENT PRIMARY KEY , + `uid` INT NOT NULL, + `spam` INT NOT NULL DEFAULT '0', + `ham` INT NOT NULL DEFAULT '0', + `term` CHAR(255) NOT NULL, + INDEX ( `uid` ), + INDEX ( `spam` ), + INDEX ( `ham` ), + INDEX ( `term` ) + ) ENGINE = MyISAM DEFAULT CHARSET=utf8"); +} + |