Issues

ZF-57: Zend_Db_Table functionality for working with table structure

Issue Type: Improvement Created: 2006-06-20T03:14:52.000+0000 Last Updated: 2007-07-05T14:44:27.000+0000 Status: Closed Fix version(s): - 0.2.0 (29/Oct/06)

Reporter: Tautvydas Andrikys (esminis) Assignee: Bill Karwin (bkarwin) Tags: - Zend_Db

Related issues: - ZF-113

Attachments:

Description

Some very usefull enhancements for Zend_Db.

Zend_Db functionality for working with table structure.

Possible interface: $table = new Table(); // extends Zend_Db_Table $schema = new Zend_Table_Schema($table); $schema->addField('fieldname', array('type' => 'VARCHAR', 'null' => true));

$schema->deleteField( title // field title in DB );

$schema->addField( title, // field title in DB 'VARCHAR', //type 255, // length null, // default value ... );

$schema->alterField( title, // field title in DB 'VARCHAR', //type 255, // length null, // default value ... );

Functionality for table structure import into DB and export to xml or other format would be very usefull too.

Possible interface: $schema->importStructure('table_structure.xml'); $schema->exportStructure('table_structure.xml');

Comments

Posted by Justin Hendrickson (toxygene) on 2006-07-12T11:20:50.000+0000

This appears to be a duplicate of ZF-113, or vice versa.

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts