aboutsummaryrefslogtreecommitdiffstats
path: root/install
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2016-10-19 16:31:35 -0700
committerzotlabs <mike@macgirvin.com>2016-10-19 16:31:35 -0700
commitc79c1b391331ab7c8c0f01265a627ffae23d54e2 (patch)
tree66d988e77e1af2b8695a9726a76fc7d5743a69a6 /install
parent716a83d1f77e2d6f26b25ab03ffe130c11ef7feb (diff)
parentb926a4c67e4d7dcba01df91dddcc047abde246bb (diff)
downloadvolse-hubzilla-c79c1b391331ab7c8c0f01265a627ffae23d54e2.tar.gz
volse-hubzilla-c79c1b391331ab7c8c0f01265a627ffae23d54e2.tar.bz2
volse-hubzilla-c79c1b391331ab7c8c0f01265a627ffae23d54e2.zip
Merge branch 'dev' into pdo
Diffstat (limited to 'install')
-rw-r--r--install/update.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/install/update.php b/install/update.php
index f13243a93..fc6641c55 100644
--- a/install/update.php
+++ b/install/update.php
@@ -2449,7 +2449,10 @@ function update_r1182() {
function update_r1183() {
if(ACTIVE_DBTYPE == DBTYPE_POSTGRES) {
- $r1 = q("alter table hook ALTER priority priority smallint NOT NULL DEFAULT '0' ");
+ $r1 = q("alter table hook ALTER COLUMN priority TYPE smallint");
+ $r2 = q("alter table hook ALTER COLUMN priority SET NOT NULL");
+ $r3 = q("alter table hook ALTER COLUMN priority SET DEFAULT '0'");
+ $r1 = $r1 && $r2 && $r3;
}
else {
$r1 = q("alter table hook CHANGE priority priority smallint NOT NULL DEFAULT '0' ");