i developed a new application but i didn't know that my client need old data when development completed he said now i need old data.
**In Old database have 5 tables**
1. Design
2. Design_comments
3. Design_personalConversation
4. Design_logs
5. Design_files (Deisgner + client Upload)
And in my new application the sturcture i sperated Payment and orderstatus and i am using
1. Design
2. Design OrderStatus
3. Design PaymentStatus
4. Design_Comments
5. Design_personalConversation
6. Design_Logs
7. Design_files (Deisgner + client Upload)
Now my main point is that:
there are alot of Design_Comments and Design_files are deleted
Eg: 5,7,11,12 Design_1 Order Contains comments_id 6,8.10,13 and comment_id also interlink with Design_files
Like Design 1 with comment 82,82 so these ids in Design_files because my comments contains some files which upload by client or design
What should i do ?
Transfer old data with same old Primary key to new tables or is there any way to full fill missing IDs should i ignore missing entries
its easy, create a migrate.php script transfer data table wise first get data from old table and then break data and transfer data to new table to new structure wise. you have to write more code for more tables.