Example #1
0
 /**
  * Return new DDL Table object
  *
  * @param string $tableName the table name
  * @param string $schemaName the database/schema name
  * @return Varien_Db_Ddl_Table
  */
 public function newTable($tableName = null, $schemaName = null)
 {
     $table = new Varien_Db_Ddl_Table();
     if ($tableName !== null) {
         $table->setName($tableName);
     }
     if ($schemaName !== null) {
         $table->setSchema($schemaName);
     }
     return $table;
 }