aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Update/_1187.php
blob: 0fce5aa059702dd184b3c205aec5096a65795b0c (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
24
<?php

namespace Zotlabs\Update;

class _1187 {
function run() {

	if(ACTIVE_DBTYPE == DBTYPE_POSTGRES) {
		$r1 = q("alter table outq add outq_scheduled timestamp not null default '0001-01-01 00:00:00' ");
	}
	else {
		$r1 = q("alter table outq add outq_scheduled datetime not null default '0001-01-01 00:00:00' ");
	}
	$r2 = q("create index outq_scheduled_idx on outq (outq_scheduled)");

	if($r1 && $r2)
		return UPDATE_SUCCESS;
	return UPDATE_FAILED;


}


}