cvs: pear /DBA DBA_Relational.php
| From: | Brent Cook | Date: | Sat, 24 Aug 2002 22:10:21 +0000 |
| Subject: | cvs: pear /DBA DBA_Relational.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-5935@lists.php.net to get a copy of this message | ||
busterb Sat Aug 24 18:10:21 2002 EDT
Modified files:
/pear/DBA DBA_Relational.php
Log:
renamed '_table' table to '_tables', added description field
Index: pear/DBA/DBA_Relational.php
diff -u pear/DBA/DBA_Relational.php:1.41 pear/DBA/DBA_Relational.php:1.42
--- pear/DBA/DBA_Relational.php:1.41 Fri Jul 19 02:50:07 2002
+++ pear/DBA/DBA_Relational.php Sat Aug 24 18:10:21 2002
@@ -18,7 +18,7 @@
// | Foundation, Inc., 59 Temple Place, Suite 330,Boston,MA 02111-1307 USA|
// +----------------------------------------------------------------------+
//
-// $Id: DBA_Relational.php,v 1.41 2002/07/19 06:50:07 busterb Exp $
+// $Id: DBA_Relational.php,v 1.42 2002/08/24 22:10:21 busterb Exp $
require_once 'PEAR.php';
require_once 'DB/DBA/DBA_Table.php';
@@ -81,10 +81,11 @@
// create the _table table. this keeps track of the tables to be used
// in DBA_Relational as well as which driver to use for each.
- if (!$this->tableExists('_table')) {
- $this->createTable('_table',
+ if (!$this->tableExists('_tables')) {
+ $this->createTable('_tables',
array('name'=>array(DBA_TYPE=>DBA_VARCHAR,DBA_PRIMARYKEY=>true),
- 'driver'=>array(DBA_TYPE=>DBA_VARCHAR)));
+ 'driver'=>array(DBA_TYPE=>DBA_VARCHAR),
+ 'description'=>array(DBA_TYPE=>DBA_TEXT)));
}
// create the _sequence table. this keeps track of named sequences
@@ -195,7 +196,7 @@
if (is_null($driver)) {
$driver = $this->_driver;
}
- $this->insert('_table', array($tableName, $driver));
+ $this->insert('_tables', array($tableName, $driver));
return DBA_Table::create($this->_home.$tableName, $schema, $driver);
}
// }}}