Changeset 7587 for temp/trunk/data/lib/slib.php
- Timestamp:
- 2006/11/07 14:23:37 (20 years ago)
- File:
-
- 1 edited
-
temp/trunk/data/lib/slib.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
temp/trunk/data/lib/slib.php
r7424 r7587 84 84 85 85 // ¥«¥é¥à¤Î¸ºß¥Á¥§¥Ã¥¯ 86 function sfColumnExists($table_name, $col_name, $ dsn = "") {86 function sfColumnExists($table_name, $col_name, $col_type = "", $dsn = "", $add = false) { 87 87 if($dsn == "") { 88 88 if(defined('DEFAULT_DSN')) { … … 122 122 } 123 123 } 124 125 // ¥«¥é¥à¤òÄɲ乤ë 126 if($add){ 127 $objQuery->query("ALTER TABLE $table_name ADD $col_name $col_type "); 128 } 129 124 130 return false; 125 131 }
Note: See TracChangeset
for help on using the changeset viewer.
