Added 'DELETE FROM linkscc' in case table exists, since it's serialized objects whose...
[lhc/web/wiklou.git] / 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" );