Is there a way to take an existing mysql create table String, and turn it into a db_forge array/script suitable for the create_table() method?, ie basically reverse the dbforge process. It is just quicker to make tables in something like Sequel pro, then copy the sql code to the model.
I already have the mysql code, but i was thinking of using the dbforge to allow different databases to be used.
Do people use the dbforge? or just write the SQL creation code manually?
hi if you want to create tables through codeigniter then use migrations class it can solve your problem. you can create, update and delete table with migrations.
CI Migration class