aboutsummaryrefslogtreecommitdiffstats
path: root/install
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-10-02 21:04:48 -0700
committerfriendica <info@friendica.com>2013-10-02 21:04:48 -0700
commit78a8d176acae142cac9d20315672772eccd6c683 (patch)
tree4aa6253a7410b097353a5ef47bcd90f88f733212 /install
parent8ce09e84c6282fbc0d5206f10c87baf8a0763a9d (diff)
downloadvolse-hubzilla-78a8d176acae142cac9d20315672772eccd6c683.tar.gz
volse-hubzilla-78a8d176acae142cac9d20315672772eccd6c683.tar.bz2
volse-hubzilla-78a8d176acae142cac9d20315672772eccd6c683.zip
post signatures
Diffstat (limited to 'install')
-rw-r--r--install/database.sql2
-rw-r--r--install/update.php9
2 files changed, 9 insertions, 2 deletions
diff --git a/install/database.sql b/install/database.sql
index eb573fb4d..6be3a31aa 100644
--- a/install/database.sql
+++ b/install/database.sql
@@ -441,7 +441,7 @@ CREATE TABLE IF NOT EXISTS `item` (
`resource_id` char(255) NOT NULL DEFAULT '',
`resource_type` char(16) NOT NULL DEFAULT '',
`attach` mediumtext NOT NULL,
- `inform` mediumtext NOT NULL,
+ `sig` text NOT NULL DEFAULT '',
`location` char(255) NOT NULL DEFAULT '',
`coord` char(255) NOT NULL DEFAULT '',
`comment_policy` char(255) NOT NULL DEFAULT '',
diff --git a/install/update.php b/install/update.php
index 8a583a947..20af0de45 100644
--- a/install/update.php
+++ b/install/update.php
@@ -1,6 +1,6 @@
<?php
-define( 'UPDATE_VERSION' , 1076 );
+define( 'UPDATE_VERSION' , 1077 );
/**
*
@@ -859,3 +859,10 @@ ADD INDEX ( `channel_a_republish` )");
return UPDATE_SUCCESS;
return UPDATE_FAILED;
}
+
+function update_r1076() {
+ $r = q("ALTER TABLE `item` CHANGE `inform` `sig` TEXT CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' ");
+ if($r)
+ return UPDATE_SUCCESS;
+ return UPDATE_FAILED;
+}