allow hooks to have negative priority

This commit is contained in:
zotlabs
2016-10-12 20:04:19 -07:00
parent 9a2f86e9ad
commit facc6ee6b3
4 changed files with 17 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
<?php
define( 'UPDATE_VERSION' , 1183 );
define( 'UPDATE_VERSION' , 1184 );
/**
*
@@ -2444,3 +2444,13 @@ function update_r1182() {
return UPDATE_SUCCESS;
return UPDATE_FAILED;
}
function update_r1183() {
$r1 = q("alter table hook CHANGE priority priority smallint NOT NULL DEFAULT '0' ");
$r2 = q("create index priority on hook (priority)");
if($r1 && $r2)
return UPDATE_SUCCESS;
return UPDATE_FAILED;
}