Added 'DELETE FROM linkscc' in case table exists, since it's serialized objects whose...
authorMr. E23 <e23@users.mediawiki.org>
Tue, 25 Nov 2003 17:55:45 +0000 (17:55 +0000)
committerMr. E23 <e23@users.mediawiki.org>
Tue, 25 Nov 2003 17:55:45 +0000 (17:55 +0000)
update.php

index fc95ba1..8a8c15c 100644 (file)
@@ -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" );