/**
  * Called in UpdateModule function using call_user_func
  * Update specified module
  */
 function update()
 {
     do_dbDelta(Configuration::getQueries());
 }
예제 #2
0
/**
 * do_dbDetla with avactis query structure
 * @param array $table
 * @param boolean $execute, default true
 */
function avactis_db_delta($tableArray, $execute = true)
{
    global $application;
    foreach ($tableArray as $tableName => $columns) {
        $queryArray[] = $application->db->PrepareCreateQuery(new DB_Table_Create_Query(array($tableName => $columns)));
    }
    return do_dbDelta($queryArray, $execute);
}