Changeset 8992


Ignore:
Timestamp:
Jan 30, 2011, 10:09:02 PM (9 years ago)
Author:
grum
Message:

release 3.4.0
review create table statement

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/GrumPluginClasses/classes/GPCTables.class.inc.php

    r6106 r8992  
    6464  {
    6565    //deleting tables if exists
    66     $this->drop();
     66
     67    $this->drop($tables_def);
    6768
    6869    for($i=0;$i<count($tables_def);$i++)
     
    132133      delete tables listed in $this->tables_list
    133134  */
    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)
    137139    {
    138140      $sql="DROP TABLE IF EXISTS ".$table_name;
Note: See TracChangeset for help on using the changeset viewer.