This commit is contained in:
redmatrix
2015-08-20 22:14:51 -07:00
5 changed files with 16 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
<?php
define( 'UPDATE_VERSION' , 1147 );
define( 'UPDATE_VERSION' , 1148 );
/**
*
@@ -1720,3 +1720,11 @@ function update_r1146() {
return UPDATE_FAILED;
}
function update_r1147() {
$r1 = q("alter table event add event_priority smallint not null default '0' ");
$r2 = q("create index event_priority on event ( event_priority ) ");
if($r1 && $r2)
return UPDATE_SUCCESS;
return UPDATE_FAILED;
}