archive contact flag
This commit is contained in:
parent
ecc4962bd1
commit
0ab6b60a52
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.1325' );
|
define ( 'FRIENDICA_VERSION', '2.3.1325' );
|
||||||
define ( 'DFRN_PROTOCOL_VERSION', '2.23' );
|
define ( 'DFRN_PROTOCOL_VERSION', '2.23' );
|
||||||
define ( 'DB_UPDATE_VERSION', 1138 );
|
define ( 'DB_UPDATE_VERSION', 1139 );
|
||||||
|
|
||||||
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' );
|
||||||
|
|
|
@ -172,6 +172,7 @@ CREATE TABLE IF NOT EXISTS `contact` (
|
||||||
`writable` tinyint(1) NOT NULL DEFAULT '0',
|
`writable` tinyint(1) NOT NULL DEFAULT '0',
|
||||||
`forum` tinyint(1) NOT NULL DEFAULT '0',
|
`forum` tinyint(1) NOT NULL DEFAULT '0',
|
||||||
`hidden` tinyint(1) NOT NULL DEFAULT '0',
|
`hidden` tinyint(1) NOT NULL DEFAULT '0',
|
||||||
|
`archive` tinyint(1) NOT NULL DEFAULT '0',
|
||||||
`pending` tinyint(1) NOT NULL DEFAULT '1',
|
`pending` tinyint(1) NOT NULL DEFAULT '1',
|
||||||
`rating` tinyint(1) NOT NULL DEFAULT '0' COMMENT '0-5 reputation, 0 unknown, 1 call police, 5 inscrutable',
|
`rating` tinyint(1) NOT NULL DEFAULT '0' COMMENT '0-5 reputation, 0 unknown, 1 call police, 5 inscrutable',
|
||||||
`reason` text NOT NULL COMMENT 'why a rating was given - will help friends decide to make friends or not',
|
`reason` text NOT NULL COMMENT 'why a rating was given - will help friends decide to make friends or not',
|
||||||
|
@ -197,6 +198,7 @@ CREATE TABLE IF NOT EXISTS `contact` (
|
||||||
KEY `nurl` (`nurl`),
|
KEY `nurl` (`nurl`),
|
||||||
KEY `pending` (`pending`),
|
KEY `pending` (`pending`),
|
||||||
KEY `hidden` (`hidden`),
|
KEY `hidden` (`hidden`),
|
||||||
|
KEY `archive` (`archive`),
|
||||||
KEY `forum` (`forum`)
|
KEY `forum` (`forum`)
|
||||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
define( 'UPDATE_VERSION' , 1138 );
|
define( 'UPDATE_VERSION' , 1139 );
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
@ -1213,3 +1213,6 @@ function update_1137() {
|
||||||
q("ALTER TABLE `item_id` ADD `sid` CHAR( 255 ) NOT NULL AFTER `uid` , ADD `service` CHAR( 255 ) NOT NULL AFTER `sid` , add index (`sid`), add index ( `service`) ");
|
q("ALTER TABLE `item_id` ADD `sid` CHAR( 255 ) NOT NULL AFTER `uid` , ADD `service` CHAR( 255 ) NOT NULL AFTER `sid` , add index (`sid`), add index ( `service`) ");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function update_1138() {
|
||||||
|
q("alter table contact add archive tinyint(1) not null default '0' after hidden, add index (archive)");
|
||||||
|
}
|
Loading…
Reference in a new issue