Merge https://github.com/redmatrix/redmatrix into pending_merge
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user