Jump to content

matching table data structures...


gamesmstr

Recommended Posts

I have an interesting problem.  I run a game and I occasionally delete inactive members.  The deleted members are held in a database which has an identical structure to the main player database in case I need to undelete someone who returns.  My problem is that I make changes to the games (updates etc) and that main main player database structure sometimes changes.  What I would like to do is have the delete database update it's structure WITHOUT modifying it's data.  I've ton up the net looking for simple ways of doing this.  Does anyone have any input?

Link to comment
Share on other sites

Put the inactive accounts into an ARCHIVE database table. Write a script that performs the "upgrade" with the new database table. Execute that script whenever an old account has to be re-newed (admin section?). The only one that may support this is a Master/Slave set-up but I doubt you want to go for this more expensive solution. I also thought about Federated but that one doesn't do the trick as the master table can be different (in the number of columns) from the slave table.

Link to comment
Share on other sites

Put the inactive accounts into an ARCHIVE database table. Write a script that performs the "upgrade" with the new database table. Execute that script whenever an old account has to be re-newed (admin section?). The only one that may support this is a Master/Slave set-up but I doubt you want to go for this more expensive solution. I also thought about Federated but that one doesn't do the trick as the master table can be different (in the number of columns) from the slave table.

 

Master/Slave setup sounds like exactly what I need.  Any suggestions where I can do some research on how to set that up? (Yes, I actually like researching.  I learn more that way :P)

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.