Ignore:
Timestamp:
2006/11/07 14:23:37 (20 years ago)
Author:
kakinaka
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • temp/trunk/data/lib/slib.php

    r7424 r7587  
    8484 
    8585// ¥«¥é¥à¤Î¸ºß¥Á¥§¥Ã¥¯ 
    86 function sfColumnExists($table_name, $col_name, $dsn = "") { 
     86function sfColumnExists($table_name, $col_name, $col_type = "", $dsn = "", $add = false) { 
    8787    if($dsn == "") { 
    8888        if(defined('DEFAULT_DSN')) { 
     
    122122        } 
    123123    } 
     124     
     125    // ¥«¥é¥à¤òÄɲ乤ë 
     126    if($add){ 
     127        $objQuery->query("ALTER TABLE $table_name ADD $col_name $col_type "); 
     128    } 
     129     
    124130    return false; 
    125131} 
Note: See TracChangeset for help on using the changeset viewer.