This topic is locked

Change database tables without starting from scratch

4/5/2007 3:58:23 AM
PHPRunner General questions
W
weber author

I have 4 tables in my DB, T1_1, T1_2, T1_3, T1_4. I have build an interface for these 4 tables and it is now working as I want it. Now I want to reuse the interface for 4 new tables which are similar to the first 4. The problem is that my ISP do not allow me to have more than 1 database. So when I generate tables T2_1, T2_2, T2_3 and T24, based on an SQl export of the structure in the tables T1..., is there then an easy way to reuse the interface for the T2 tables?
regards

Steen

Alexey admin 4/5/2007

Hi,
make a copy of your PHPRunner project folder then open .phpr file with a text editor and replace all occurencies of T1_1 with T2_1, T1_2 with T2_2 and so on.

Then open this file with PHPRunner and build the pages.

W
weber author 4/5/2007

Hi,

make a copy of your PHPRunner project folder then open .phpr file with a text editor and replace all occurencies of T1_1 with T2_1, T1_2 with T2_2 and so on.

Then open this file with PHPRunner and build the pages.


I tried it and it works, I went into the .phpr file and replaced T1 with T2.

Can I delete all files with T1 in the name? as I now have a micture of files with T1...... and T2.....
Steen

Alexey admin 4/6/2007

Steen,
you can delete all the files then rebuild them with PHPRunner.