aboutsummaryrefslogtreecommitdiffstats
path: root/install/update.php
diff options
context:
space:
mode:
authorAndrew Manning <tamanning@zoho.com>2017-01-29 20:02:34 -0500
committerAndrew Manning <tamanning@zoho.com>2017-01-29 20:02:34 -0500
commitb58d56826bf9fd74a70a25848113c80baeeb8dfc (patch)
tree17b98611cb4af1ffc0dc4b85c0d173b0231b9f9f /install/update.php
parente770768b790f2441ef5371910568ff3bf6680dab (diff)
parentdbf7ff979122ea0f8877e9ae4b16590f280593ef (diff)
downloadvolse-hubzilla-b58d56826bf9fd74a70a25848113c80baeeb8dfc.tar.gz
volse-hubzilla-b58d56826bf9fd74a70a25848113c80baeeb8dfc.tar.bz2
volse-hubzilla-b58d56826bf9fd74a70a25848113c80baeeb8dfc.zip
Merge branch 'dev' of https://github.com/redmatrix/hubzilla into dev
Diffstat (limited to 'install/update.php')
-rw-r--r--install/update.php21
1 files changed, 19 insertions, 2 deletions
diff --git a/install/update.php b/install/update.php
index 34f23b049..87cf4ba60 100644
--- a/install/update.php
+++ b/install/update.php
@@ -1,6 +1,6 @@
<?php
-define( 'UPDATE_VERSION' , 1187 );
+define( 'UPDATE_VERSION' , 1188 );
/**
*
@@ -2484,11 +2484,28 @@ function update_r1185() {
function update_r1186() {
- $r1 = q("alter table profile add profile_vcard text not null default '' ");
+ $r1 = q("alter table profile add profile_vcard text not null");
if($r1)
return UPDATE_SUCCESS;
return UPDATE_FAILED;
+}
+
+function update_r1187() {
+
+ 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;
+
+
} \ No newline at end of file