This is more about checking my logic to see if i understand whether or not my idea of migration is the same as more experienced folk.
I have 2 databases, one with my current website stuff and one with my new development stuff. I now want to load all the current website database onto my new development database.
These databases have different schemas, different structures in terms of column names and a bit more decoupling in terms of data within the new development database tables.
To do this i am using php and sql, where by i'm calling specific tables using sql into multidimensional arrays to get all the relevant data needed for my new development database tables. checking to see if its repeat data and ordering it.
So now i have a multidimensional array that is full of data needed for my new database table which has been extracted from the old tables. I have renamed all the keys in the multidimensional array to match the names of the database. So technically i have a multidimensional array that is a copy of what i want to insert into my database.
Then i insert that multidimensional array into the new database and bobs your uncle a migration of a database?
Does this sound right and is there some suggested reading that you guys n girls might point me to?
Regards Mike
EDIT
By using multidimensional arrays to collect all the data that i want to put into my new database, wont i then be double handling the data and therefore use alot more resources from my migration script?