Hoffi
09-22-2002, 10:00 PM
I wrote this Hack just a few Minutes ago. It is a very small one, but i needed the Changes, so you may also need and use it.
It Adds an Option in the Database-Backup that allows you to Choose the Kind of Deleting the Data in the Database before Inserting.
Normally there will be in fromt of the INSERT Statements the Query DROP TABLE IF EXIST and the neccessary CREATE TABLE Statement. With this Hack you can Choose to DELETE the Content of the Table only. So a DELETE FROM 'table' will be set in the Dump. This may help ou by Backup your Database, Install a Hack with Strukture-Changes and then wirtes back the Dump. If you writes back a DUMP with DROP Table, you mus renew your Hack, with the DELETE Option you can directly Insert the Data.
I plan to add more Options with the Time.
It Adds an Option in the Database-Backup that allows you to Choose the Kind of Deleting the Data in the Database before Inserting.
Normally there will be in fromt of the INSERT Statements the Query DROP TABLE IF EXIST and the neccessary CREATE TABLE Statement. With this Hack you can Choose to DELETE the Content of the Table only. So a DELETE FROM 'table' will be set in the Dump. This may help ou by Backup your Database, Install a Hack with Strukture-Changes and then wirtes back the Dump. If you writes back a DUMP with DROP Table, you mus renew your Hack, with the DELETE Option you can directly Insert the Data.
I plan to add more Options with the Time.