in reply to Parse PHP or Perl and Reconstruct MySQL Schema
I've been in similar situations, and sometimes I realize I simply had to bite the bullet and start over than to go through the code to reconstruct the SQL tables. It can take a lot less time to simply rewrite than to figure out what the tables looked like, testing your assumptions, and rebuilding everything again.
On the plus side, I usually happen to like the rewritten code much better. I have a better understanding of the application, and how the code interacts with itself. Plus, features and modifications that were squeezed into the code are now part of the base code.
One of the lessons learned is that your code should generate all the needed SQL tables, views, etc, and fill it with the needed preliminary data. It may seem like a waste of time spending a lot of effort on code that should only be run once, but this type of stuff happens a lot more often than you think.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Parse PHP or Perl and Reconstruct MySQL Schema
by jhourcle (Prior) on Jun 06, 2006 at 15:22 UTC |