Database can now be automatically updated

This commit is contained in:
Domovoy 2012-07-24 01:21:02 +02:00
parent 35f1081bfe
commit c052c6afca
3 changed files with 10 additions and 2 deletions

View file

@ -1,6 +1,6 @@
<?php
define( 'UPDATE_VERSION' , 1153 );
define( 'UPDATE_VERSION' , 1154 );
/**
*
@ -1337,3 +1337,10 @@ function update_1152() {
return UPDATE_SUCCESS;
}
function update_1153() {
$r = q("ALTER TABLE `hook` ADD `priority` INT(11) UNSIGNED NOT NULL DEFAULT '0'");
if(!$r) return UPDATE_FAILED;
return UPDATE_SUCCESS;
}