Notices

Site Rollback Information, please read!  Thread Tools Reply
Old 06-14-2012, 12:59 PM   #41
Kill_the_Bug
Veteran Member
 
Kill_the_Bug is offline
Posts: 777
Thanks: 277
Thanked: 89

Default Site Rollback Information, please read!


Any updates on the mapping discussion forum? I'm noticing a couple of missign posts.
 
Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Advertisement

Old 06-14-2012, 01:30 PM   #42
Fr0Z3n
func_medal_dispenser
 
Fr0Z3n's Avatar
 
Fr0Z3n is offline
Posts: 4,149
Thanks: 2,153
Thanked: 2,049

Default Site Rollback Information, please read!


Quote:
Originally Posted by Kill_the_Bug View Post
Any updates on the mapping discussion forum? I'm noticing a couple of missign posts.
Nothing yet, we haven't set up the backup database.
 
Reply With Quote
The Following User Says Thank You to Fr0Z3n For This Useful Post:
Old 06-14-2012, 02:38 PM   #43
Kill_the_Bug
Veteran Member
 
Kill_the_Bug is offline
Posts: 777
Thanks: 277
Thanked: 89

Default Site Rollback Information, please read!


Ok cool - thanks for the update on the update!
 
Reply With Quote
Old 06-14-2012, 11:57 PM   #44
Tom Hoen
L4: Senior Member
 
Tom Hoen's Avatar
 
Tom Hoen is offline
Posts: 317
Thanks: 241
Thanked: 245

Default Site Rollback Information, please read!


You guys are doing great and hopefully you get everything working as intended!

(I wanted to cheer you guys!)

__________________
http://dl.dropbox.com/u/37253888/TF2...ure%20beta.png Portfolio
 
Reply With Quote
Old 06-15-2012, 05:39 AM   #45
henke37
L5: Alleged Expert
 
henke37's Avatar
 
henke37 is offline
Posts: 401
Thanks: 26
Thanked: 71

Default Site Rollback Information, please read!


Quote:
Originally Posted by stevethepocket View Post
Ah. So it sounds like my guess was partially right; the column that holds the "what forum does this thread go in" ID had all of its values set to the same number. I bet that could have been fixed with a little SQL-fu without resorting to rolling back the whole forum, honestly. It would just be a matter of copying the associations from the backup and then moving the leftover threads manually.
Yup, but they seem to be too lazy to do that.
 
Reply With Quote
Old 06-15-2012, 08:46 AM   #46
Fr0Z3n
func_medal_dispenser
 
Fr0Z3n's Avatar
 
Fr0Z3n is offline
Posts: 4,149
Thanks: 2,153
Thanked: 2,049

Default Site Rollback Information, please read!


Quote:
Originally Posted by henke37 View Post
Yup, but they seem to be too lazy to do that.
I've had a couple people to come to me saying "no no no, this is actually really easy!" I honestly don't know the coding needed to do that, so that would be some drp would do.

The only issue that I would see with doing a sort function is merging the old w/ new. All post that are older than 3 weeks would already be there so would there be an issue with use ending up with copies (which we don't want), would it replace itself? Or would it be able to properly fit itself inbetween the old and new?
 
Reply With Quote
Old 06-15-2012, 11:05 AM   #47
stevethepocket
(heaven forbid) ponies
 
stevethepocket's Avatar
 
stevethepocket is offline
Posts: 1,996
Thanks: 170
Thanked: 753

Default Site Rollback Information, please read!


What I would have done — assuming the database is structured the way I think it is — is write a run-once PHP script that performs a process like this:

Code:
retrieve thread #'s and subforum association #'s from the threads table in the old DB
store that mess in an array
for each row in the array:
- find the row in the current DB with the same thread #
- set the subforum association # in the current DB to the one in that row of the array
Then it'd just be a matter of finding the leftover threads, the ones that were made since the backup, and putting them where they belong manually. I assume that could be done through the VBulletin control panel.

Now that we've already started running off the backup, though, it's gotten a lot more complicated, because now we've got all the posts and threads that have been made since the rollback, which have the same #'s as the lost posts. Off the top of my head I'm not sure what we'd do about those.

__________________
Current projects: Fort Frolic (BioShock-themed Arena map) | Turbine remake
 
Last edited by stevethepocket; 06-15-2012 at 11:07 AM.
Reply With Quote
Old 06-15-2012, 02:32 PM   #48
henke37
L5: Alleged Expert
 
henke37's Avatar
 
henke37 is offline
Posts: 401
Thanks: 26
Thanked: 71

Default Site Rollback Information, please read!


Code:
update oldTopics, newTopics set newTopics.forumId=oldTopics.forumid where newTopics.topicId=oldTopics.topicId
Very complicated. Certainly not something I threw together in 10 minutes.
 
Reply With Quote
Old 06-15-2012, 03:17 PM   #49
stevethepocket
(heaven forbid) ponies
 
stevethepocket's Avatar
 
stevethepocket is offline
Posts: 1,996
Thanks: 170
Thanked: 753

Default Site Rollback Information, please read!


Or that.

__________________
Current projects: Fort Frolic (BioShock-themed Arena map) | Turbine remake
 
Reply With Quote
Old 06-15-2012, 04:39 PM   #50
Kill_the_Bug
Veteran Member
 
Kill_the_Bug is offline
Posts: 777
Thanks: 277
Thanked: 89

Default Site Rollback Information, please read!


Quote:
Now that we've already started running off the backup, though, it's gotten a lot more complicated, because now we've got all the posts and threads that have been made since the rollback, which have the same #'s as the lost posts. Off the top of my head I'm not sure what we'd do about those.
Why don't you just lock the forums so no posts can be made until everything else is reloaded so that to don't have to wory about the duplicate / overwirte issues from happening? The once you have done that - you can then repost anything new so that it gets a new number in the proper order?
 
Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Advertisement

Reply  

Previous Thread Next Thread
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 On



All times are GMT -5. The time now is 12:32 AM.