From: Mr. E23 Date: Tue, 25 Nov 2003 17:55:45 +0000 (+0000) Subject: Added 'DELETE FROM linkscc' in case table exists, since it's serialized objects whose... X-Git-Tag: 1.1.0~85 X-Git-Url: http://git.cyclocoop.org/%22%24script/%7B%7B%20url_for%28?a=commitdiff_plain;h=e783f33c7f6ad56be6f1ac27d8ed85495f01c57c;p=lhc%2Fweb%2Fwiklou.git Added 'DELETE FROM linkscc' in case table exists, since it's serialized objects whose exact structure may differ between program versions. --- 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" );