allow events to be ignored
This commit is contained in:
parent
f4e3f335ef
commit
3ea5001bb0
2
boot.php
2
boot.php
|
@ -13,7 +13,7 @@ require_once('library/Mobile_Detect/Mobile_Detect.php');
|
||||||
define ( 'FRIENDICA_PLATFORM', 'Friendica');
|
define ( 'FRIENDICA_PLATFORM', 'Friendica');
|
||||||
define ( 'FRIENDICA_VERSION', '3.0.1464' );
|
define ( 'FRIENDICA_VERSION', '3.0.1464' );
|
||||||
define ( 'DFRN_PROTOCOL_VERSION', '2.23' );
|
define ( 'DFRN_PROTOCOL_VERSION', '2.23' );
|
||||||
define ( 'DB_UPDATE_VERSION', 1154 );
|
define ( 'DB_UPDATE_VERSION', 1155 );
|
||||||
|
|
||||||
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' );
|
||||||
|
|
|
@ -260,6 +260,7 @@ CREATE TABLE IF NOT EXISTS `event` (
|
||||||
`type` char(255) NOT NULL,
|
`type` char(255) NOT NULL,
|
||||||
`nofinish` tinyint(1) NOT NULL DEFAULT '0',
|
`nofinish` tinyint(1) NOT NULL DEFAULT '0',
|
||||||
`adjust` tinyint(1) NOT NULL DEFAULT '1',
|
`adjust` tinyint(1) NOT NULL DEFAULT '1',
|
||||||
|
`ignore` tinyint(1) NOT NULL DEFAULT '0',
|
||||||
`allow_cid` mediumtext NOT NULL,
|
`allow_cid` mediumtext NOT NULL,
|
||||||
`allow_gid` mediumtext NOT NULL,
|
`allow_gid` mediumtext NOT NULL,
|
||||||
`deny_cid` mediumtext NOT NULL,
|
`deny_cid` mediumtext NOT NULL,
|
||||||
|
@ -271,7 +272,8 @@ CREATE TABLE IF NOT EXISTS `event` (
|
||||||
KEY `type` ( `type` ),
|
KEY `type` ( `type` ),
|
||||||
KEY `start` ( `start` ),
|
KEY `start` ( `start` ),
|
||||||
KEY `finish` ( `finish` ),
|
KEY `finish` ( `finish` ),
|
||||||
KEY `adjust` ( `adjust` )
|
KEY `adjust` ( `adjust` ),
|
||||||
|
KEY `ignore` ( `ignore` ),
|
||||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
-- --------------------------------------------------------
|
-- --------------------------------------------------------
|
||||||
|
|
10
update.php
10
update.php
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
define( 'UPDATE_VERSION' , 1154 );
|
define( 'UPDATE_VERSION' , 1155 );
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
@ -1343,3 +1343,11 @@ function update_1153() {
|
||||||
if(!$r) return UPDATE_FAILED;
|
if(!$r) return UPDATE_FAILED;
|
||||||
return UPDATE_SUCCESS;
|
return UPDATE_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function update_1154() {
|
||||||
|
$r = q("ALTER TABLE `event` ADD `ignore` TINYINT( 1 ) UNSIGNED NOT NULL DEFAULT '0' AFTER `adjust` , ADD INDEX ( `ignore` )");
|
||||||
|
|
||||||
|
if(!$r) return UPDATE_FAILED;
|
||||||
|
return UPDATE_SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user