Reputation: 5247
I have built a query tool that enables a non-technical user to query parts of a database. I want to rename all the columns nicely. e.g.:
table_id` > "Table ID"
forename > "Forename"
phone > "Telephone"
I have put all the information into the MySQL COMMENT field as in:
ALTER TABLE `table`
CHANGE `field` `field` INT( 11 ) NOT NULL COMMENT 'Nice field name'
I have accessed this but it seems rather heavy. Can it be accessed nicely?
Upvotes: 0
Views: 183
Reputation: 2472
I would overrided _setupMetadata to read in that information and populate it into the tables metat data. Check out http://framework.zend.com/manual/en/zend.db.table.html
Upvotes: 1