aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Update/_1189.php
blob: 5cd180fbda04676dbf6fe6c7c6aad74e9162de75 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php

namespace Zotlabs\Update;

class _1189 {
function run() {

	$r1 = q("alter table mail add mail_mimetype varchar(64) not null default 'text/bbcode' ");

	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;

}


}