From e783f33c7f6ad56be6f1ac27d8ed85495f01c57c Mon Sep 17 00:00:00 2001 From: "Mr. E23" Date: Tue, 25 Nov 2003 17:55:45 +0000 Subject: [PATCH] Added 'DELETE FROM linkscc' in case table exists, since it's serialized objects whose exact structure may differ between program versions. --- update.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/update.php b/update.php index fc95ba1752..8a8c15c3a4 100644 --- a/update.php +++ b/update.php @@ -174,6 +174,10 @@ function do_linkscc_update() { global $rconn; if( table_exists( "linkscc" ) ) { echo "...have linkscc table.\n"; + echo "Deleting entries from linkscc to avoid potential compatability problems..."; + $sql = "DELETE FROM linkscc"; + wfQuery( $sql, DB_WRITE, "Update script: do_linkscc_update()" ); + echo "ok\n"; } else { echo "Adding linkscc table... "; dbsource( "maintenance/archives/patch-linkscc.sql" ); -- 2.20.1