aboutsummaryrefslogtreecommitdiffstats
path: root/install
diff options
context:
space:
mode:
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 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;
+}