Sometimes when doing an upgrade to an existing program, you will add additional fields or even add a new table altogether as well as create new index keys.
I want to create a program that
1) records the structures of the new tables as well as existing ones
2) At the clients' place recreate the new tables in a separate directory where these tables are obviously empty.
3) Run through (scan) the list of "old" tables and if the same table name is found in the "new" table directory, append the records to the new tables until all the tables are updated. If the table does not exist, copy it to the old directory.
4) When done, transfer the newly updated tables to the old directory.
Would appreciate any tips in approaching this problem in the best possible way. Thanks in advance.
I want to create a program that
1) records the structures of the new tables as well as existing ones
2) At the clients' place recreate the new tables in a separate directory where these tables are obviously empty.
3) Run through (scan) the list of "old" tables and if the same table name is found in the "new" table directory, append the records to the new tables until all the tables are updated. If the table does not exist, copy it to the old directory.
4) When done, transfer the newly updated tables to the old directory.
Would appreciate any tips in approaching this problem in the best possible way. Thanks in advance.