New field "network" in item table to speed up the system.
This commit is contained in:
parent
5b6e16d193
commit
0ffeb4cf92
5 changed files with 20 additions and 7 deletions
16
update.php
16
update.php
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue