Procedural File: _functions_evoupgrade.php
Source Location: /blogs/install/_functions_evoupgrade.php
Page Details
This file implements upgrading of DB tables
b2evolution - http://b2evolution.net/ Released under GNU GPL License - http://b2evolution.net/about/license.html
| Copyright: | (c)2003-2007 by Francois PLANQUE - http://fplanque.net/ |
| Filesource: | Source Code for this file |
Functions
convert_lang_to_locale [line 137]
|
Converts languages in a given table into according locales
Parameters:| string | $table: | name of the table |
| string | $columnlang: | name of the column where lang is stored |
| string | $columnID: | name of the table's ID column |
[ Top ]
db_add_col [line 119]
|
Add a column, if it does not already exist.
Parameters:| $table: | ||
| $col_name: | ||
| $col_desc: |
[ Top ]
db_cols_exist [line 89]
|
| $table: | ||
| $col_names: |
API Tags:
| Return: | Does a list of given column names exist in DB? |
[ Top ]
db_col_exists [line 73]
|
| $table: | ||
| $col_name: |
API Tags:
| Return: | Does a given column name exist in DB? |
[ Top ]
db_drop_col [line 106]
|
Drops a column, if it exists.
Parameters:| $table: | ||
| $col_name: |
[ Top ]
db_index_exists [line 52]
|
| $table: | ||
| $index_name: |
API Tags:
| Return: | Does a given index key name exist in DB? |
[ Top ]
set_upgrade_checkpoint [line 27]
|
Create a DB version checkpoint
This is useful when the next operation might timeout or fail! The checkpoint will allow to restart the script and continue where it stopped
Parameters:| string | $version: | version of DB at checkpoint |
[ Top ]
