modularise the notification popups
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
define( 'UPDATE_VERSION' , 1002 );
|
||||
define( 'UPDATE_VERSION' , 1003 );
|
||||
|
||||
/**
|
||||
*
|
||||
@@ -61,3 +61,13 @@ function update_r1001() {
|
||||
return UPDATE_SUCCESS;
|
||||
return UPDATE_FAILED;
|
||||
}
|
||||
|
||||
|
||||
function update_r1002() {
|
||||
$r = q("ALTER TABLE `event` CHANGE `account` `aid` INT( 10 ) UNSIGNED NOT NULL DEFAULT '0'");
|
||||
$r2 = q("alter table `event` drop index `account`, add index (`aid`)");
|
||||
|
||||
if($r && $r2)
|
||||
return UPDATE_SUCCESS;
|
||||
return UPDATE_FAILED;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user