Databases: Generate database auto increment table alter query
Muhammed Imran Hussain (contact me)
This class can be used to generate MySQL database alter statements queries to add auto-increment fields.
It traverse all tables of a given MySQL database and generates SQL statements that alter the tables to add auto-increment fields after restoring a database dump that did not preserve the auto-increment fields.
The generates SQL statements may be returned as a single string or be served for download as the current script output.
Click here for detailed information about this class on phpclasses.org