Changeset 8992
- Timestamp:
- Jan 30, 2011, 10:09:02 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/GrumPluginClasses/classes/GPCTables.class.inc.php
r6106 r8992 64 64 { 65 65 //deleting tables if exists 66 $this->drop(); 66 67 $this->drop($tables_def); 67 68 68 69 for($i=0;$i<count($tables_def);$i++) … … 132 133 delete tables listed in $this->tables_list 133 134 */ 134 public function drop() 135 { 136 foreach($this->tables as $key => $table_name) 135 public function drop($list=array()) 136 { 137 if(count($list)==0) $list=$this->tables; 138 foreach($list as $key => $table_name) 137 139 { 138 140 $sql="DROP TABLE IF EXISTS ".$table_name;
Note: See TracChangeset
for help on using the changeset viewer.