aboutsummaryrefslogtreecommitdiffstats
path: root/install
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2015-12-07 00:01:03 +0100
committerMario Vavti <mario@mariovavti.com>2015-12-07 00:01:03 +0100
commitc8c9916b5977e3ae8db4762209ca4bf99a3058ee (patch)
treeeb8b5c906054a85a6120aff623ae19941f849f88 /install
parent5490919557362176ae50005f3f205505c21cbe23 (diff)
parent3f920da4137ecb91b3aeb2683f2e2b59b4d088cc (diff)
downloadvolse-hubzilla-c8c9916b5977e3ae8db4762209ca4bf99a3058ee.tar.gz
volse-hubzilla-c8c9916b5977e3ae8db4762209ca4bf99a3058ee.tar.bz2
volse-hubzilla-c8c9916b5977e3ae8db4762209ca4bf99a3058ee.zip
Merge branch 'master' of https://github.com/redmatrix/hubzilla
Diffstat (limited to 'install')
-rw-r--r--install/schema_mysql.sql1
-rw-r--r--install/schema_postgres.sql1
-rw-r--r--install/update.php9
3 files changed, 10 insertions, 1 deletions
diff --git a/install/schema_mysql.sql b/install/schema_mysql.sql
index 3dab6c822..9c24cbd94 100644
--- a/install/schema_mysql.sql
+++ b/install/schema_mysql.sql
@@ -23,6 +23,7 @@ CREATE TABLE IF NOT EXISTS `abook` (
`abook_profile` char(64) NOT NULL DEFAULT '',
`abook_incl` TEXT NOT NULL DEFAULT '',
`abook_excl` TEXT NOT NULL DEFAULT '',
+ `abook_instance` TEXT NOT NULL DEFAULT '',
PRIMARY KEY (`abook_id`),
KEY `abook_account` (`abook_account`),
KEY `abook_channel` (`abook_channel`),
diff --git a/install/schema_postgres.sql b/install/schema_postgres.sql
index 95ed9acb7..0214c0c2a 100644
--- a/install/schema_postgres.sql
+++ b/install/schema_postgres.sql
@@ -22,6 +22,7 @@ CREATE TABLE "abook" (
"abook_profile" char(64) NOT NULL DEFAULT '',
"abook_incl" TEXT NOT NULL DEFAULT '',
"abook_excl" TEXT NOT NULL DEFAULT '',
+ "abook_instance" TEXT NOT NULL DEFAULT '',
PRIMARY KEY ("abook_id")
);
create index "abook_account" on abook ("abook_account");
diff --git a/install/update.php b/install/update.php
index 10ae6725e..24f4f21d5 100644
--- a/install/update.php
+++ b/install/update.php
@@ -1,6 +1,6 @@
<?php
-define( 'UPDATE_VERSION' , 1160 );
+define( 'UPDATE_VERSION' , 1161 );
/**
*
@@ -1950,3 +1950,10 @@ function update_r1159() {
}
+function update_r1160() {
+ $r = q("alter table abook add abook_instance text not null default '' ");
+ if($r)
+ return UPDATE_SUCCESS;
+ return UPDATE_FAILED;
+}
+