add event_sequence for vtodo's

This commit is contained in:
redmatrix
2015-08-18 17:10:40 -07:00
parent 75fbf21e6b
commit 37d07a7d2a
5 changed files with 19 additions and 5 deletions

View File

@@ -1,6 +1,6 @@
<?php
define( 'UPDATE_VERSION' , 1146 );
define( 'UPDATE_VERSION' , 1147 );
/**
*
@@ -1694,4 +1694,14 @@ function update_r1145() {
return UPDATE_SUCCESS;
return UPDATE_FAILED;
}
}
function update_r1146() {
$r1 = q("alter table event add event_sequence smallint not null default '0' ");
$r2 = q("create index event_sequence on event ( event_sequence ) ");
if($r1 && $r2)
return UPDATE_SUCCESS;
return UPDATE_FAILED;
}