diff options
author | friendica <info@friendica.com> | 2013-07-29 17:30:46 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-07-29 17:30:46 -0700 |
commit | 7b3c29ebe69726f7d42c9327bebb2ea7251bccb4 (patch) | |
tree | eea014afe0989f657768eaf56cacf0f33a6e88df /install | |
parent | 092ef64ac78d7535788ba03b0d940fa311e0934d (diff) | |
download | volse-hubzilla-7b3c29ebe69726f7d42c9327bebb2ea7251bccb4.tar.gz volse-hubzilla-7b3c29ebe69726f7d42c9327bebb2ea7251bccb4.tar.bz2 volse-hubzilla-7b3c29ebe69726f7d42c9327bebb2ea7251bccb4.zip |
fix bug #84, make imported messages from your clones show up on your wall
Diffstat (limited to 'install')
-rw-r--r-- | install/database.sql | 2 | ||||
-rw-r--r-- | install/update.php | 9 |
2 files changed, 9 insertions, 2 deletions
diff --git a/install/database.sql b/install/database.sql index e8b01d066..29ee19a2d 100644 --- a/install/database.sql +++ b/install/database.sql @@ -443,7 +443,7 @@ CREATE TABLE IF NOT EXISTS `item` ( `owner_xchan` char(255) NOT NULL DEFAULT '', `author_xchan` char(255) NOT NULL DEFAULT '', `mimetype` char(255) NOT NULL DEFAULT '', - `title` char(255) NOT NULL DEFAULT '', + `title` text NOT NULL DEFAULT '', `body` mediumtext NOT NULL, `app` char(255) NOT NULL DEFAULT '', `lang` char(64) NOT NULL DEFAULT '', diff --git a/install/update.php b/install/update.php index ba9e9e430..1ea9aa377 100644 --- a/install/update.php +++ b/install/update.php @@ -1,6 +1,6 @@ <?php -define( 'UPDATE_VERSION' , 1054 ); +define( 'UPDATE_VERSION' , 1055 ); /** * @@ -641,3 +641,10 @@ function update_r1053() { return UPDATE_SUCCESS; return UPDATE_FAILED; } + +function update_r1054() { + $r = q("ALTER TABLE `item` CHANGE `title` `title` TEXT CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' "); + if($r) + return UPDATE_SUCCESS; + return UPDATE_FAILED; +} |