Joined: Mar 30, 2006 Posts: 2456 Location: Pittsburgh, Pennsylvania
Posted:
Fri Feb 05, 2010 12:24 pm
You could try this. It is for 7.9 to 7.6. Before you do ANYTHING please make sure you have a backup of the database.
Code:
<?php
########################################################
# File to Downgrade from PHP-Nuke 7.8 to PHP-Nuke 7.6 #
# After you used this file, you can safely delete it. #
########################################################
# -= WARNING: PLEASE READ =- #
# #
# NOTE: This file uses config.php to retrieve needed #
# variables values. So, to do the upgrade PLEASE copy #
# this file in your server root directory and execute #
# it from your browser. #
########################################################
# Made By Platinum @
Only registered users can see links on this board! Get registered or login to the forums!
#
# for Php Nuke Evolution #
#
Only registered users can see links on this board! Get registered or login to the forums!
// Table Removal and alteration for Moderated Comments to drop the karma system
$db->sql_query("ALTER TABLE ".$user_prefix."_users Drop karma ");
$db->sql_query("DROP TABLE IF EXISTS ".$prefix."_comments_moderated");
$db->sql_query("DROP TABLE IF EXISTS ".$prefix."_pollcomments_moderated");
$db->sql_query("DROP TABLE IF EXISTS ".$prefix."_reviews_comments_moderated");
// News Comments table alteration for moderation system
$db->sql_query("ALTER TABLE ".$prefix."_comments DROP last_moderation_ip ");
// Surveys Comments table alteration for moderation system
$db->sql_query("ALTER TABLE ".$prefix."_pollcomments DROP last_moderation_ip ");
$db->sql_query("ALTER TABLE ".$prefix."_poll_desc DROP comments ");
// Articles rating system Backdate
$db->sql_query("ALTER TABLE ".$prefix."_stories DROP rating_ip ");
// PHP-Nuke Version Number Update
$db->sql_query("UPDATE ".$prefix."_config SET Version_Num='7.6'");
OpenTable();
echo "<br />PHP-Nuke Update finished!<br /><br />"
."Your Php Nuke Version is now 7.6<br /><br />"
."You should now delete this Downgrade file from your server.<br /><br />";
View next topic View previous topic
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum