diff options
author | zotlabs <mike@macgirvin.com> | 2016-10-12 20:04:19 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2016-10-12 20:04:19 -0700 |
commit | facc6ee6b32df5c51d7f00bda1caa0469d4f71e3 (patch) | |
tree | 6e519117a19b01d9ad29bbf8028f0f59ad494b05 /install/update.php | |
parent | 9a2f86e9ad3afadfafab59568bec6749a75478ab (diff) | |
download | volse-hubzilla-facc6ee6b32df5c51d7f00bda1caa0469d4f71e3.tar.gz volse-hubzilla-facc6ee6b32df5c51d7f00bda1caa0469d4f71e3.tar.bz2 volse-hubzilla-facc6ee6b32df5c51d7f00bda1caa0469d4f71e3.zip |
allow hooks to have negative priority
Diffstat (limited to 'install/update.php')
-rw-r--r-- | install/update.php | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/install/update.php b/install/update.php index 921d16e2f..07a94b161 100644 --- a/install/update.php +++ b/install/update.php @@ -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; +}
\ No newline at end of file |