23553 Posts in 19380 Topics by 2892 members
|Go to End|
20 November 2009 at 12:59am
I have created SamplePage.php and Build db /dev/build. I will be have new table. If I delete SamplePage.php and rebuild DB the table it not delete.
How to auto delete or clean database table after delete SamplePage.php or something page?
Step 1 : I have created 5 page controller and 5 data object files.
Step 2: I have build DB /dev/build?flush=all
Step 3: I have deleted 5 files in folder mysite/code/ and Build DB again.
Step 3: I check in Database but table in database is not delete.
21 November 2009 at 9:09am
I've found it keeps old fields as well, I just remove them manually in MySQL
26 November 2009 at 4:57am
This is more of an architectural thing. The idea being if you change your mind of need to roll back to old code it will still work and the data will be intact.
You might want to search/ask in the Data Model forum on how to discretely prune your tables. Personally, I just run alter statements after I'm sure they can be deleted.
|Go to Top|