1
0
Fork 0

New field "network" in item table to speed up the system.

This commit is contained in:
Michael Vogel 2013-10-25 23:33:53 +02:00
commit 0ffeb4cf92
5 changed files with 20 additions and 7 deletions

View file

@ -1,6 +1,6 @@
<?php
define( 'UPDATE_VERSION' , 1163 );
define( 'UPDATE_VERSION' , 1164 );
/**
*
@ -1441,3 +1441,17 @@ function update_1162() {
require_once('include/tags.php');
update_items();
}
function update_1163() {
set_config('system', 'maintenance', 1);
$r = q("ALTER TABLE `item` ADD `network` char(32) NOT NULL,
ADD INDEX (`network`)");
set_config('system', 'maintenance', 0);
if(!$r)
return UPDATE_FAILED;
return UPDATE_SUCCESS;
}