aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-04-27 16:46:28 -0700
committerfriendica <info@friendica.com>2012-04-27 16:46:28 -0700
commit0ab6b60a52fc27d8a37917b3b3e25de37c8fd372 (patch)
tree7e700c291de2dca1555d02f36ed6c565e5652751
parentecc4962bd1455d4ded6570f6d08ccab7e838fe8b (diff)
downloadvolse-hubzilla-0ab6b60a52fc27d8a37917b3b3e25de37c8fd372.tar.gz
volse-hubzilla-0ab6b60a52fc27d8a37917b3b3e25de37c8fd372.tar.bz2
volse-hubzilla-0ab6b60a52fc27d8a37917b3b3e25de37c8fd372.zip
archive contact flag
-rw-r--r--boot.php2
-rw-r--r--database.sql2
-rw-r--r--update.php5
3 files changed, 7 insertions, 2 deletions
diff --git a/boot.php b/boot.php
index 03edef663..02550deb1 100644
--- a/boot.php
+++ b/boot.php
@@ -11,7 +11,7 @@ require_once('include/cache.php');
define ( 'FRIENDICA_PLATFORM', 'Friendica');
define ( 'FRIENDICA_VERSION', '2.3.1325' );
define ( 'DFRN_PROTOCOL_VERSION', '2.23' );
-define ( 'DB_UPDATE_VERSION', 1138 );
+define ( 'DB_UPDATE_VERSION', 1139 );
define ( 'EOL', "<br />\r\n" );
define ( 'ATOM_TIME', 'Y-m-d\TH:i:s\Z' );
diff --git a/database.sql b/database.sql
index eadb53cc6..78b26922b 100644
--- a/database.sql
+++ b/database.sql
@@ -172,6 +172,7 @@ CREATE TABLE IF NOT EXISTS `contact` (
`writable` tinyint(1) NOT NULL DEFAULT '0',
`forum` 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',
`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',
@@ -197,6 +198,7 @@ CREATE TABLE IF NOT EXISTS `contact` (
KEY `nurl` (`nurl`),
KEY `pending` (`pending`),
KEY `hidden` (`hidden`),
+ KEY `archive` (`archive`),
KEY `forum` (`forum`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
diff --git a/update.php b/update.php
index 5ab321b33..2758f5906 100644
--- a/update.php
+++ b/update.php
@@ -1,6 +1,6 @@
<?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`) ");
}
+function update_1138() {
+ q("alter table contact add archive tinyint(1) not null default '0' after hidden, add index (archive)");
+} \ No newline at end of file