aboutsummaryrefslogtreecommitdiffstats
path: root/install
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-10-13 18:36:28 -0700
committerfriendica <info@friendica.com>2013-10-13 18:36:28 -0700
commitad29d0f9a1eb0be9024f1a296460221107654ff9 (patch)
tree036ff008cf7548f804f0bb4ccc719bebdf6647cf /install
parent3c3c13c63048434b58c99952fa618f7e60a8b2fa (diff)
downloadvolse-hubzilla-ad29d0f9a1eb0be9024f1a296460221107654ff9.tar.gz
volse-hubzilla-ad29d0f9a1eb0be9024f1a296460221107654ff9.tar.bz2
volse-hubzilla-ad29d0f9a1eb0be9024f1a296460221107654ff9.zip
preserve the source owner when creating a delivery fork so that we can uplink back to them without any ambiguity.
Diffstat (limited to 'install')
-rw-r--r--install/database.sql1
-rw-r--r--install/update.php9
2 files changed, 9 insertions, 1 deletions
diff --git a/install/database.sql b/install/database.sql
index 6be3a31aa..3998c13c7 100644
--- a/install/database.sql
+++ b/install/database.sql
@@ -423,6 +423,7 @@ CREATE TABLE IF NOT EXISTS `item` (
`changed` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`owner_xchan` char(255) NOT NULL DEFAULT '',
`author_xchan` char(255) NOT NULL DEFAULT '',
+ `source_xchan` char(255) NOT NULL DEFAULT '',
`mimetype` char(255) NOT NULL DEFAULT '',
`title` text NOT NULL,
`body` mediumtext NOT NULL,
diff --git a/install/update.php b/install/update.php
index 20af0de45..74134f260 100644
--- a/install/update.php
+++ b/install/update.php
@@ -1,6 +1,6 @@
<?php
-define( 'UPDATE_VERSION' , 1077 );
+define( 'UPDATE_VERSION' , 1078 );
/**
*
@@ -866,3 +866,10 @@ function update_r1076() {
return UPDATE_SUCCESS;
return UPDATE_FAILED;
}
+
+function update_r1077() {
+ $r = q("ALTER TABLE `item` ADD `source_xchan` CHAR( 255 ) NOT NULL DEFAULT '' AFTER `author_xchan` ");
+ if($r)
+ return UPDATE_SUCCESS;
+ return UPDATE_FAILED;
+}