add the project name to site info packet

This commit is contained in:
redmatrix
2015-10-19 16:07:14 -07:00
parent b49972a623
commit 57e0bfc5a9
7 changed files with 27 additions and 8 deletions

View File

@@ -1,6 +1,6 @@
<?php
define( 'UPDATE_VERSION' , 1157 );
define( 'UPDATE_VERSION' , 1158 );
/**
*
@@ -1774,3 +1774,13 @@ function update_r1155() {
function update_r1156() {
return UPDATE_SUCCESS;
}
function update_r1157() {
$r1 = q("alter table site add site_project char(255) not null default '' ");
$r2 = q("create index site_project on site ( site_project ) ");
if($r1 && $r2)
return UPDATE_SUCCESS;
return UPDATE_FAILED;
}