[ Index ]
 

Code source de b2evolution 2.1.0-beta

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/blogs/install/ -> _functions_evoupgrade.php (sommaire)

This file implements upgrading of DB tables b2evolution - {@link http://b2evolution.net/} Released under GNU GPL License - {@link http://b2evolution.net/about/license.html}

Copyright: (c)2003-2007 by Francois PLANQUE - {@link http://fplanque.net/}
Poids: 2283 lignes (83 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 8 fonctions

  set_upgrade_checkpoint()
  db_index_exists()
  db_col_exists()
  db_cols_exist()
  db_drop_col()
  db_add_col()
  convert_lang_to_locale()
  upgrade_b2evo_tables()

Fonctions
Fonctions qui ne font pas partie d'une Classe:

set_upgrade_checkpoint( $version )   X-Ref
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

param: string version of DB at checkpoint

db_index_exists( $table, $index_name )   X-Ref

return: boolean Does a given index key name exist in DB?

db_col_exists( $table, $col_name )   X-Ref

return: boolean Does a given column name exist in DB?

db_cols_exist( $table, $col_names )   X-Ref

return: boolean Does a list of given column names exist in DB?

db_drop_col( $table, $col_name )   X-Ref
Drops a column, if it exists.


db_add_col( $table, $col_name, $col_desc )   X-Ref
Add a column, if it does not already exist.


convert_lang_to_locale( $table, $columnlang, $columnID )   X-Ref
Converts languages in a given table into according locales

param: string name of the table
param: string name of the column where lang is stored
param: string name of the table's ID column

upgrade_b2evo_tables()   X-Ref
upgrade_b2evo_tables(-)




Généré le : Thu Nov 29 23:58:50 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics