aboutsummaryrefslogtreecommitdiffstats
path: root/install/update.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-05-15 22:58:13 -0700
committerzotlabs <mike@macgirvin.com>2017-05-15 22:58:13 -0700
commitdf3eb562f09dc8c9248d9f76c7cf48480027075e (patch)
tree924fd68eef5209794861d7e9b2a2f2fae67b2bab /install/update.php
parentd9fdd0ce369766f41b87aebae5580a6fa67510ba (diff)
downloadvolse-hubzilla-df3eb562f09dc8c9248d9f76c7cf48480027075e.tar.gz
volse-hubzilla-df3eb562f09dc8c9248d9f76c7cf48480027075e.tar.bz2
volse-hubzilla-df3eb562f09dc8c9248d9f76c7cf48480027075e.zip
danger - do not use 'char(n)' with postgres it creates a thing called a bpchar which is different than a normal text field in subtle ways.
Diffstat (limited to 'install/update.php')
-rw-r--r--install/update.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/install/update.php b/install/update.php
index 65506a2f7..affdb6ffb 100644
--- a/install/update.php
+++ b/install/update.php
@@ -2475,7 +2475,7 @@ function update_r1184() {
function update_r1185() {
- $r1 = q("alter table app add app_plugin char(255) not null default '' ");
+ $r1 = q("alter table app add app_plugin text not null default '' ");
if($r1)
return UPDATE_SUCCESS;
@@ -2523,7 +2523,7 @@ function update_r1188() {
function update_r1189() {
- $r1 = q("alter table mail add mail_mimetype char(64) not null default 'text/bbcode' ");
+ $r1 = q("alter table mail add mail_mimetype varchar(64) not null default 'text/bbcode' ");
$r2 = q("alter table mail add mail_raw int(4) not null default '0' ");
if($r1 && $r2)