diff options
author | Christian Vogeley <christian.vogeley@hotmail.de> | 2013-10-20 01:22:51 +0200 |
---|---|---|
committer | Christian Vogeley <christian.vogeley@hotmail.de> | 2013-10-20 01:22:51 +0200 |
commit | 2db45695e8067e49eb4c8a6d8044cd9cac7f07e5 (patch) | |
tree | 7a1029e10578e99f0dbbef6e22c42eb784ddd9d1 /install | |
parent | c0789bdb4fc7412efd5e2fb1e15b63d359a74cfa (diff) | |
parent | 49fb6326e0e978f57b2f988935af6e8e3d2f4417 (diff) | |
download | volse-hubzilla-2db45695e8067e49eb4c8a6d8044cd9cac7f07e5.tar.gz volse-hubzilla-2db45695e8067e49eb4c8a6d8044cd9cac7f07e5.tar.bz2 volse-hubzilla-2db45695e8067e49eb4c8a6d8044cd9cac7f07e5.zip |
Merge upstream
Diffstat (limited to 'install')
-rw-r--r-- | install/database.sql | 1 | ||||
-rw-r--r-- | install/update.php | 9 |
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; +} |