vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Administrative and Maintenance Tools - Table and Field Comparison Utility: Compare your database to out-of-the-box vBulletin (https://vborg.vbsupport.ru/showthread.php?t=235476)

calorie 02-09-2010 10:00 PM

Table and Field Comparison Utility: Compare your database to out-of-the-box vBulletin
 
1 Attachment(s)
What is it?

This utility makes a comparison between the tables and fields in your database and the out-of-the-box vBulletin tables and fields.

It reports the following differences:
  • The out-of-the-box vBulletin tables that are not in the database
  • The database tables that are not a part of out-of-the-box vBulletin
  • The out-of-the-box vBulletin fields that are not in the vBulletin tables
  • The fields that are in the vBulletin tables but not a part of out-of-the-box vBulletin
New Features
  • Ability to delete extraneous tables and fields from the compareutility.php file
    • Don't screw up your vBulletin database!
Installation
  1. FTP the compareutility.php file into your /admincp directory in ASCII mode.
  2. Go to the following page with your browser: http://www.YOUR-DOMAIN.com/YOUR-FORUM-DIR/YOUR-ADMINCP-DIR/compareutility.php
  3. You need to set the following to yes to access the compareutility.php file:
    • ACP -> Usergroups -> Administrator Permissions -> Edit Permissions -> Can Run Maintenance Tools
  4. To add a link to compareutility.php under the ACP -> Maintenance sidebar see this post.
UN-installation
  1. Delete the compareutility.php file from your server.
  2. Delete the cpnav_compare_db.xml from your server (from this post).
vBulletin version?
  • Only tested on vBulletin 4.0.0 PL1 and 4.0.1
  • May not work correctly on vBulletin 4.0.2
  • May work on vBulletin 3.5 and up
  • Won't work on less than vBulletin 3.5
  • The vB3 version is located here
Screenshot
  • None, run the script to see the report.

Hornstar 02-10-2010 09:29 AM

one of these days I should run this to help me clean up my database. I'm just a little worried that I will screw something major up or remove a field that is required by a hack.

Leo Brazil 02-10-2010 01:52 PM

Great Idea. Sometimes you remove a hack and always leave behide something on database. It's good to keep it clean.

Thank you

Edit: This should be default on vB just like the check files on maitenance menu.

Bouncer222 02-10-2010 02:49 PM

Isn't this part of the diagnostics feature? That feature does pretty much everything you posted here.

Wayne Luke 02-10-2010 04:56 PM

Quote:

Originally Posted by Bouncer222 (Post 1979161)
Isn't this part of the diagnostics feature? That feature does pretty much everything you posted here.

Actually, no. This isn't part of the default diagnostics in vBulletin. Personally, I wish it was as it would make my job easier but until then this works well enough.

AzzidReign 02-10-2010 05:15 PM

I'm going to be using this when I upgrade to 4.x. I never used your 3.8.x one but I'll be using this one! Thanks.

Zaiaku 02-11-2010 03:23 PM

Nice work. Tagging for future use for now then then into install.

Bram H 02-15-2010 09:56 AM

Would love to use this hack, as we have installed so many mods the last years. And i am sure it needs some cleaning.
But like Hornstar i am too frightened to mess something up badly :)

fly 02-15-2010 03:41 PM

It looks like there a genius coder that used a ' in his table names. it doesn't appear that your script likes those.

yaghoub 02-16-2010 12:51 PM

i install it but ant things not show in admincp for reviwe this hack going to ..adress

Rebecca217 03-01-2010 05:00 PM

This is exactly what I was looking for. Thank you! :)

Farid 03-09-2010 11:49 AM

Interesting tool!

But I wish the [Ask for Query] was working though...

I have a few out-of-the-box vBulletin fields that are not in my vBulletin tables:
holiday: varname
subscription: varname
userfield: field1
usergroup: albumpicmaxsize

...but now I have no idea how important these are, how come they are not there, and if/how I should be fixing the problem... :erm:

MrBlaQ 03-31-2010 06:33 PM

This util helped me a lot after an upgrade from 2.2.6 to 4.0.2 PL4. I had a lot of left over profile fields in my user table that were interfering with the postbit building functions. For instance, I had a "message" profile field on my 2.2.6 board and when I upgraded to 4.0.2, those fields were moved to the new profile structure. But, the old columns weren't deleted from the DB. What happened was the postbit message context was being merged with the user context. Both had a [message] key and since the user->message key was blank, my PM messages were showing up blank.

safakuygur 03-31-2010 06:39 PM

Very nice thanks

robbiefritz 04-29-2010 11:36 PM

Has anyone used this on 4.03?

Update: Tested on my test forum and all worked well. THanks

robbiefritz 05-06-2010 06:27 PM

Besides the permissions that one needs to set for the Admin, one needs to make the following change also.

Quote:

You are not authorized to execute SQL queries. You need to edit your vBulletin config.php file, replacing X with your user ID in the following line: $config['SpecialUsers']['canrunqueries'] = 'X';

Boofo 05-22-2010 04:29 PM

In vb version 4.0.3 it is showing blog_attachmentlegacy under "The database tables that are not a part of out-of-the-box vBulletin", on the suite. I have not added this table.

Good job, Calorie. This is great! ;)

Hippy 06-06-2010 02:22 PM

Same issue
did you find a fix ?
I posted over at vb.com as well
On test upgrade DB and the live forum
holiday: varname
subscription: varname
usergroup: albumpicmaxsize

Quote:

Originally Posted by Farid (Post 2000393)
Interesting tool!

But I wish the [Ask for Query] was working though...

I have a few out-of-the-box vBulletin fields that are not in my vBulletin tables:
holiday: varname
subscription: varname
userfield: field1
usergroup: albumpicmaxsize

...but now I have no idea how important these are, how come they are not there, and if/how I should be fixing the problem... :erm:


Abhik 06-10-2010 05:31 PM

Any idea when this mod going to officially released for vb 4.0.3 PL1?

Boofo 06-10-2010 05:43 PM

Quote:

Originally Posted by Abhik (Post 2051650)
Any idea when this mod going to officially released for vb 4.0.3 PL1?

It already works for 4.0.3 PL1. There is only one entry missing (in my above post) but other than that, it works fine.

Abhik 06-13-2010 11:45 AM

Hello,
I have analyzed my database with this tool. I have these "The out-of-the-box vBulletin fields that are not in the vBulletin tables"

Can you help me to put them back? (I have a table prefix "mst_")
http://img14.imageshack.us/img14/3868/capturecq.jpg

Boofo 06-13-2010 11:56 AM

What do you mean "put them back"? They are already there.

Abhik 06-13-2010 04:56 PM

Isn't they are the fields which are supposed to be in the tables?
I mean, my mst_groupmessage table doesn't have any field called discussionid
mst_pmtext table doesn't have any field called reportthreadid
mst_profilefieldcategory table doesn't have any field called allowprivacy
mst_usergroup table doesn't have any field called albumpicmaxsize.

So, is there any way, by queries, I can put those fields back in the tables?

Boofo 06-13-2010 05:08 PM

Those are fields, not tables in that pic you posted. They wouldn't be there unless the table that holds them was there also. You are fine.

Abhik 06-14-2010 03:11 AM

The tables are there.. not the fields/columns in those tables.

Boofo 06-14-2010 04:30 AM

You're not understanding. Those are NOT tables. They are fields. Look at what it says in the header. If that stuff was not there, you would be getting all sorts of errors on the site when it tried to use those. If you are still concerned, re-install the product.

Abhik 06-14-2010 04:30 PM

Okay, mst_groupmessage, mst_pmtext, mst_profilefieldcategory and mst_usergroup are fields, not tables?

Boofo 06-14-2010 08:40 PM

Yes, according to the pic you posted. They are considered columns. But I have been reading it wrong. According to that pic, you are right, they are not there.

Have you tried clicking on the [Ask for Query] link? I would first physically go to the db and make sure they are not there before I did anything, though.

Abhik 06-15-2010 09:45 AM

:)
[Ask for Query] isn't clickable.
I manually checked the database and those fields indeed are absent from corresponding tables.

I guess only some manual queries can create those fields. It'd be very helpful for me if someone can tell me that.

Abhik 06-15-2010 10:16 AM

Okay..
I got the details from mysql-schema.php, run those queries and everything seems to work fine.

Thanks for your time :)

Boofo 06-15-2010 01:30 PM

Glad to here you got it fixed. ;)

Bram H 10-24-2010 11:10 PM

Is this mod still fully updated to the latest vb specs?

Bram H 04-03-2011 12:46 AM

A bump as nothing has ever been posted since my last question

avsunforum 07-01-2011 09:10 PM

great mod thank you


All times are GMT. The time now is 08:07 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.01261 seconds
  • Memory Usage 1,796KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (34)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete