important table sql update guide to updating your dspdb
important table sql update guide to updating your dspdb
When an important table is updated in dsp, it can break your stuff.
Here is a step by step guide (Sorry, using navicat lite, although other database management software can do this too. But it is not always using the same command name)
Step 1. Download the appropriate sql update. Put it somewhere you can remember so you can select it later.
Step 2. Open your Navicat to your dspdb database. Make sure you have the database selected. Better if you can see the tables in the right panel.
Step 3. Right click your database and select "Execute Batch File..." This will bring you to the sql batch file process.
Step 4. On this screen, click the ... and select your file. Step 5. The file should now be loaded for processing. Click start. This will run the sql update file and if everything is correct, you should see a message like this: Your table should now be updated. Feel free to open the table in your dspdb to confirm that the new columns are there.
Here is a step by step guide (Sorry, using navicat lite, although other database management software can do this too. But it is not always using the same command name)
Step 1. Download the appropriate sql update. Put it somewhere you can remember so you can select it later.
Step 2. Open your Navicat to your dspdb database. Make sure you have the database selected. Better if you can see the tables in the right panel.
Step 3. Right click your database and select "Execute Batch File..." This will bring you to the sql batch file process.
Step 4. On this screen, click the ... and select your file. Step 5. The file should now be loaded for processing. Click start. This will run the sql update file and if everything is correct, you should see a message like this: Your table should now be updated. Feel free to open the table in your dspdb to confirm that the new columns are there.
Re: important table sql update guide to updating your dspdb
Table update for 4/14/2015 database update. Please use this file if your char_stats does not have pet_id, pet_type, pet_hp, pet_mp.
Re: important table sql update guide to updating your dspdb
Excellent! Everything is working now. Thank you.
Re: important table sql update guide to updating your dspdb
One more quick question for future reference. Where do i download the appropriate sql update in the future?
Re: important table sql update guide to updating your dspdb
When the important tables change (We can just wipe and use git tables for the non-important so those will not need restored), if I am still around, I will attach here and use date referencing so you know if you built it before that date, but haven't applied, you can download. So, just look for future patches located in this thread.
Re: important table sql update guide to updating your dspdb
The 5/5/2015 broke more stuff: https://github.com/DarkstarProject/dark ... 2093c035cf
Please find the sql fix for the chars.sql table in your existing database. Please also ensure that you add the new table, char_style.sql, to your database.
The lockstyle code implementation is:
Please find the sql fix for the chars.sql table in your existing database. Please also ensure that you add the new table, char_style.sql, to your database.
The lockstyle code implementation is:
Code: Select all
ALTER TABLE chars ADD `isstylelocked` tinyint(1) NOT NULL DEFAULT '0';
Re: important table sql update guide to updating your dspdb
They've done it again! Modified chars table and new char_merits table. Any help on this one or should I brave editing the table manually (shouldn't be too hard)?
Re: important table sql update guide to updating your dspdb
all you have to do is run the merits migration tool after creating the char_merits table. you don't even have to remove the old merits column if you don't want to - nothing in that update will be a loss of information (just moved around), nor will it actually require any editing of existing character tables (since it just removes a column)SwitchVII wrote:They've done it again! Modified chars table and new char_merits table. Any help on this one or should I brave editing the table manually (shouldn't be too hard)?
Re: important table sql update guide to updating your dspdb
Sorry, in this case, since you need to run the merit converter before you update, I don't want to give an SQL file for removal of that column. Afraid someone would run it before updating their merits and end up without the merits, since all an SQL file would do is remove that specific blob. The last thing I want is a message saying "I ran your SQL, it deleted all my merits, and I didn't have a backup so they are lost".