some preliminary structural work for app organisation
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
define( 'UPDATE_VERSION' , 1167 );
|
||||
define( 'UPDATE_VERSION' , 1168 );
|
||||
|
||||
/**
|
||||
*
|
||||
@@ -2079,4 +2079,21 @@ function update_r1166() {
|
||||
return UPDATE_FAILED;
|
||||
}
|
||||
|
||||
function update_r1167() {
|
||||
|
||||
$r1 = q("alter table app add app_deleted int not null default '0' ");
|
||||
$r2 = q("alter table app add app_system int not null default '0' ");
|
||||
|
||||
if(ACTIVE_DBTYPE == DBTYPE_POSTGRES) {
|
||||
$r3 = q("create index \"app_deleted_idx\" on app (\"app_deleted\") ");
|
||||
$r4 = q("create index \"app_system_idx\" on app (\"app_system\") ");
|
||||
}
|
||||
else {
|
||||
$r3 = q("alter table app add index ( app_deleted ) ");
|
||||
$r4 = q("alter table app add index ( app_system ) ");
|
||||
}
|
||||
|
||||
if($r1 && $r2 && $r3 && $r4)
|
||||
return UPDATE_SUCCESS;
|
||||
return UPDATE_FAILED;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user