spam db
This commit is contained in:
parent
6bc48b29cc
commit
fc036210fb
2
boot.php
2
boot.php
|
@ -11,7 +11,7 @@ require_once('include/cache.php');
|
||||||
define ( 'FRIENDICA_PLATFORM', 'Friendica');
|
define ( 'FRIENDICA_PLATFORM', 'Friendica');
|
||||||
define ( 'FRIENDICA_VERSION', '2.3.1264' );
|
define ( 'FRIENDICA_VERSION', '2.3.1264' );
|
||||||
define ( 'DFRN_PROTOCOL_VERSION', '2.22' );
|
define ( 'DFRN_PROTOCOL_VERSION', '2.22' );
|
||||||
define ( 'DB_UPDATE_VERSION', 1127 );
|
define ( 'DB_UPDATE_VERSION', 1128 );
|
||||||
|
|
||||||
define ( 'EOL', "<br />\r\n" );
|
define ( 'EOL', "<br />\r\n" );
|
||||||
define ( 'ATOM_TIME', 'Y-m-d\TH:i:s\Z' );
|
define ( 'ATOM_TIME', 'Y-m-d\TH:i:s\Z' );
|
||||||
|
|
12
database.sql
12
database.sql
|
@ -838,4 +838,16 @@ INDEX ( `master-parent-item` ),
|
||||||
INDEX ( `receiver-uid` )
|
INDEX ( `receiver-uid` )
|
||||||
) ENGINE = MyISAM DEFAULT CHARSET=utf8;
|
) ENGINE = MyISAM DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
|
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;
|
||||||
|
|
||||||
|
|
||||||
|
|
17
update.php
17
update.php
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?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`,
|
q("ALTER TABLE `mailacct` ADD `action` INT NOT NULL AFTER `pass`,
|
||||||
ADD `movetofolder` CHAR(255) NOT NULL AFTER `action`");
|
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");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue