Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > Premium Archives > RPG Integration Hack

Reply
 
Thread Tools
SQL Error While Upgrading Details »»
SQL Error While Upgrading
Version: , by freebase69 freebase69 is offline
Developer Last Online: Jun 2013 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 05-06-2005 Last Update: Never Installs: 0
 
No support by the author.

I updated all the files, uploaded all the ones that need to go, ran the installer and it went great, then it ran to upgrade to a new version automatically like 4 times. All worked but the last one going from V3Beta to V3 Final. This is the error I am getting and I can't get past it:

Database error in vBulletin 3.0.7:

Invalid SQL: ALTER TABLE `rpg_lottery` DROP `editing`
mysql error: Can't DROP 'editing'. Check that column/key exists

mysql error number: 1091


Any ideas?

Thanks

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 05-06-2005, 10:44 PM
Revan's Avatar
Revan Revan is offline
 
Join Date: Jan 2004
Location: Norway
Posts: 1,671
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<a href="https://vborg.vbsupport.ru/showthread.php?t=78632" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=78632</a>
Reply With Quote
  #3  
Old 05-07-2005, 03:26 AM
freebase69's Avatar
freebase69 freebase69 is offline
 
Join Date: May 2005
Location: Gateway to the West
Posts: 75
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I removed the DROP and editing from the code and it went past that part but now I get this error:

Database error in vBulletin 3.0.7:

Invalid SQL: ALTER TABLE `user` ADD `inmonsterbattle` INT( 10 ) UNSIGNED DEFAULT '0' NOT NULL
mysql error: Duplicate column name 'inmonsterbattle'

mysql error number: 1060


I dont quite understand what that guy did in the other post but I tried to follow along as best as I could. Any other advice would be greatly appreciated.
Reply With Quote
  #4  
Old 05-07-2005, 03:32 AM
RichieBoy67's Avatar
RichieBoy67 RichieBoy67 is offline
 
Join Date: Apr 2004
Location: CT - Down in a hole..
Posts: 3,057
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Do you have a link????
Reply With Quote
  #5  
Old 05-07-2005, 04:26 AM
freebase69's Avatar
freebase69 freebase69 is offline
 
Join Date: May 2005
Location: Gateway to the West
Posts: 75
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Link to what? My site? Currently it's turned off because these errors are causing errors with the entire site.
Reply With Quote
  #6  
Old 05-07-2005, 10:05 AM
Revan's Avatar
Revan Revan is offline
 
Join Date: Jan 2004
Location: Norway
Posts: 1,671
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay heres what to do:
* Remove the DROP from the upgrade file
* At the top of the file, before the first if(), place
$DB_site->reporterror = 0;
* At the bottom of the file, after the last if(), place
$DB_site->reporterror = 1;
* Open vB Options, and save them.
* Run the upgrade again.
Reply With Quote
  #7  
Old 05-07-2005, 09:15 PM
freebase69's Avatar
freebase69 freebase69 is offline
 
Join Date: May 2005
Location: Gateway to the West
Posts: 75
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Im still not having any luck. This is what I did:

// ######################### START MAIN SCRIPT ############################
// ################################################## ######################
$DB_site->reporterror = 0;
if ($current_version < $script_version)
{


$DB_site->query("ALTER TABLE `" . TABLE_PREFIX . "rpg_lottery`");




if ($RPG_UPGRADE_DONE === true)
{
$DB_site->query("
UPDATE `" . TABLE_PREFIX . "setting` SET
value = '" . intval($script_version) . "',
defaultvalue = '" . intval($script_version) . "'
WHERE varname = '" . addslashes('rpg_versionnumber') . "'
");
print_description_row('Updated Setting: <b><i>Version Number</i></b>');
}
}
$DB_site->reporterror = 1;

/*================================================= =====================*\

When I run it like this I get this error:
Database error in vBulletin 3.0.7:

Invalid SQL: ALTER TABLE `user` ADD `inmonsterbattle` INT( 10 ) UNSIGNED DEFAULT '0' NOT NULL
mysql error: Duplicate column name 'inmonsterbattle'

mysql error number: 1060
Reply With Quote
  #8  
Old 05-09-2005, 09:30 PM
freebase69's Avatar
freebase69 freebase69 is offline
 
Join Date: May 2005
Location: Gateway to the West
Posts: 75
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've removed my vBulletin and all the previously installed hacks. I am going to do a fresh install and try this again without importing threads/users/etc/etc.

Maybe something got messed up in that process because I'm out of ideas. I should have it back up sometime tonight and hopefully it will work.
Reply With Quote
  #9  
Old 06-05-2005, 10:02 PM
congpine congpine is offline
 
Join Date: May 2005
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hey guys .. i got the same problems as you did ...T_T .
Code:
if ($RPG_UPGRADE_DONE === true)
$DB_site->reporterror = 1;

	{
		$DB_site->query("
			UPDATE `" . TABLE_PREFIX . "setting` SET
				value = '" . intval($script_version) . "',
				defaultvalue = '" . intval($script_version) . "'
			WHERE varname = '" . addslashes('rpg_versionnumber') . "'
		");
		print_description_row('Updated Setting: <b><i>Version Number</i></b>');
	}
}

anyone help ? i do a fresh install so i think you will meet that problem again , so DON'T REMOVE YOUR BOARD
Reply With Quote
  #10  
Old 06-05-2005, 11:53 PM
Durtay Durtay is offline
 
Join Date: Feb 2004
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by freebase69
I updated all the files, uploaded all the ones that need to go, ran the installer and it went great, then it ran to upgrade to a new version automatically like 4 times. All worked but the last one going from V3Beta to V3 Final. This is the error I am getting and I can't get past it:

Database error in vBulletin 3.0.7:

Invalid SQL: ALTER TABLE `rpg_lottery` DROP `editing`
mysql error: Can't DROP 'editing'. Check that column/key exists

mysql error number: 1091


Any ideas?

Thanks
I came across these problems also... this is how you get around them. If you have phpmyadmin access...

First go into the 'rpg_lottery' table and add an empty column titled "editing", just set all stats to 0.

Once thats created go into the 'user' table and remove the column titled "inmonsterbattle"...

re-do the upgrade install, it will finish correctly.

Code:
ALTER TABLE `rpg_lottery` ADD `editing` VARCHAR( 00 ) NOT NULL ;
Code:
ALTER TABLE `user` DROP `inmonsterbattle`
theres the sql coding to do that without phpmyadmin
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:54 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05205 seconds
  • Memory Usage 2,290KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete