aboutsummaryrefslogtreecommitdiffstats
path: root/install
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2015-02-01 20:30:47 -0800
committerfriendica <info@friendica.com>2015-02-01 20:30:47 -0800
commitaafed50a0ea8a8d7091572473dcb8e4fb8cd4602 (patch)
tree66b27325cd7bcce748965aebb29ab8a1da2f340d /install
parente6a5f7800390e5091743d6a97c6fd8f54c5d1530 (diff)
parente58bef049d7736d448f7bb5688affe491b9e24b1 (diff)
downloadvolse-hubzilla-aafed50a0ea8a8d7091572473dcb8e4fb8cd4602.tar.gz
volse-hubzilla-aafed50a0ea8a8d7091572473dcb8e4fb8cd4602.tar.bz2
volse-hubzilla-aafed50a0ea8a8d7091572473dcb8e4fb8cd4602.zip
Merge branch 'master' into tres
Diffstat (limited to 'install')
-rw-r--r--install/schema_mysql.sql1
-rw-r--r--install/schema_postgres.sql1
-rw-r--r--install/update.php11
3 files changed, 11 insertions, 2 deletions
diff --git a/install/schema_mysql.sql b/install/schema_mysql.sql
index ba41073f8..8addc0af9 100644
--- a/install/schema_mysql.sql
+++ b/install/schema_mysql.sql
@@ -1533,6 +1533,7 @@ CREATE TABLE IF NOT EXISTS `xlink` (
`xlink_rating_text` TEXT NOT NULL DEFAULT '',
`xlink_updated` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`xlink_static` tinyint(1) NOT NULL DEFAULT '0',
+ `xlink_sig` text NOT NULL DEFAULT '',
PRIMARY KEY (`xlink_id`),
KEY `xlink_xchan` (`xlink_xchan`),
KEY `xlink_link` (`xlink_link`),
diff --git a/install/schema_postgres.sql b/install/schema_postgres.sql
index 2fcc7f9ba..b68a7cb97 100644
--- a/install/schema_postgres.sql
+++ b/install/schema_postgres.sql
@@ -1146,6 +1146,7 @@ CREATE TABLE "xlink" (
"xlink_rating_text" TEXT NOT NULL DEFAULT '',
"xlink_updated" timestamp NOT NULL DEFAULT '0001-01-01 00:00:00',
"xlink_static" numeric(1) NOT NULL DEFAULT '0',
+ "xlink_sig" text NOT NULL DEFAULT '',
PRIMARY KEY ("xlink_id")
);
create index "xlink_xchan" on xlink ("xlink_xchan");
diff --git a/install/update.php b/install/update.php
index 597da4e3b..c6e4535e1 100644
--- a/install/update.php
+++ b/install/update.php
@@ -1,6 +1,6 @@
<?php
-define( 'UPDATE_VERSION' , 1135 );
+define( 'UPDATE_VERSION' , 1136 );
/**
*
@@ -1549,4 +1549,11 @@ function update_r1134() {
if($r)
return UPDATE_SUCCESS;
return UPDATE_FAILED;
-} \ No newline at end of file
+}
+
+function update_r1135() {
+ $r = q("ALTER TABLE xlink ADD xlink_sig TEXT NOT NULL DEFAULT ''");
+ if($r)
+ return UPDATE_SUCCESS;
+ return UPDATE_FAILED;
+}