aboutsummaryrefslogtreecommitdiffstats
path: root/install
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2017-05-28 17:54:05 +0200
committerMario Vavti <mario@mariovavti.com>2017-05-29 13:19:08 +0200
commit11cecea597441d4bd688c3fa73e85b91a01ad173 (patch)
tree64c3c10bf858d8e5c51b9e87760585b817637b22 /install
parente9d924b5d79dc69dd6b1926157575dba80cb68a7 (diff)
downloadvolse-hubzilla-11cecea597441d4bd688c3fa73e85b91a01ad173.tar.gz
volse-hubzilla-11cecea597441d4bd688c3fa73e85b91a01ad173.tar.bz2
volse-hubzilla-11cecea597441d4bd688c3fa73e85b91a01ad173.zip
fix update_r1189() for mysql and postgres
Diffstat (limited to 'install')
-rw-r--r--install/update.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/install/update.php b/install/update.php
index 06084a422..f9f1d0a3c 100644
--- a/install/update.php
+++ b/install/update.php
@@ -2524,8 +2524,13 @@ function update_r1188() {
function update_r1189() {
$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(ACTIVE_DBTYPE == DBTYPE_POSTGRES) {
+ $r2 = q("alter table mail add mail_raw smallint not null default 0 ");
+ }
+ else {
+ $r2 = q("alter table mail add mail_raw tinyint(4) not null default 0 ");
+ }
if($r1 && $r2)
return UPDATE_SUCCESS;
return UPDATE_FAILED;