Commit graph

23 commits

Author SHA1 Message Date
sruon
24ef5c559a Healing Breeze CHR +2 2025-08-20 00:59:40 -06:00
Corey Sotiropoulos
f202e592e7 [sql] Speed up Aria table inserts
See:
https://mariadb.com/kb/en/aria-storage-engine/
2024-01-11 22:33:23 -05:00
Zach Toogood
24f35c4c5e [sql] Replace MyISAM engine with Aria 2024-01-04 18:43:36 +00:00
Zach Toogood
ca3bdd22fe [SQL] Add COLLATE=utf8mb4_general_ci to all tables 2024-01-04 18:25:12 +00:00
Corey Sotiropoulos
d92c54d1b4 [dbtool] Add function to dump DB to SQL files
Queries database then scans corresponding SQL file, replacing values
in INSERT statements with data from the database.

Is not smart about which INSERT statement gets which data; line-end
comments can get shuffled around if SQL file INSERTs are out of order
or missing. If you're doing INSERT or DELETE operations, make sure
to add a blank "INSERT INTO `table` VALUES ();" or manually remove
the INSERT statement respectively before dumping tables.
2023-08-23 22:50:08 -04:00
Zach Toogood
edc817a2d7 [db] Make all tables CHARSET=utf8mb4 2023-02-05 21:13:32 +00:00
Zach Toogood
05b1a7f961 [chore] Clean up some formatting in SQL files 2022-07-05 12:49:26 +03:00
TeoTwawki
dd02066118 Convert tables that are never written to back to MyISAM. Only tables we write to need InnoDB.
MyISAM = table level locking, fast but not safe for multiple simultaneous writes
InnoDB = row level locking, slow, but is safe for multiple simultaneous writes

```
Features                            MyISAM                        InnoDB
Type                                Non-Transactional             Transactional
Locking                             Table locking                 Row-level locking
Foreign keys                        No                            Yes
Table, index, data storage          Three separate files          Combined Tablespace
ACID                                No                            Yes
```
2021-11-10 08:09:45 -05:00
TeoTwawki
2589da530c Merge branch 'topaz' of https://github.com/DerpyProjectGroup/topaz into freedom
# Resolved Conflicts:
#	sql/job_points.sql
2021-04-18 13:49:29 -04:00
Ixion
c460a89139 Ixion is Come!
- Rebranding.
- Migrate to GitLab.
- Add support for database updates when using Docker.
- Give purpose to version.h (adjust minor version with client updates).
- Add an in-game `!ver` command.
- Remove references to AGPL.
2021-04-17 18:24:14 -04:00
TeoTwawki
276cf1a095 Merge branch 'canary' of https://github.com/topaz-next/topaz into freedom 2021-04-10 22:55:57 -04:00
TeoTwawki
de3066a3cb Remove even more banding references. The name "topaz" remains in places but all of "tpz" should be gone now. 2021-04-01 16:14:56 -04:00
Zach Toogood
9e4993893d Migrate all SQL tables from MyISAM to InnoDB 2021-02-05 17:07:08 +02:00
Topaz
3eb1c1570f Remove DSP branding (copyright notices retained) 2019-12-02 12:40:02 -08:00
DivByXI
1de1db6604 Update blue_spell_mods.sql
Fixed some BLU modifiers
2019-01-04 10:44:50 +00:00
TeoTwawki
8209f73159 Line ends, round 2. Fight! 2016-01-16 01:26:33 -05:00
TeoTwawki
ddc9256b4d Updated spell lists again.
Corrected a typo in mob_skill.sql
Made casing of all entries consistent with existing format.
Added commented out dummy entries for things that need additional data/verification/correction, or just plain have no framework to even start with (like "trust" magic).

NOTE:
I believe credit for the Geonmancer spell info contained in spell_list.sql belongs with Compmike19, I copied a lot out of my working copy and that was in there, so it's included, but I take no credit for those.
2014-09-18 02:38:38 -04:00
TeoTwawki
64991b0142 Typo fix.
My apologies, I was sure I'd executed this prior to my last commit but I somehow missed this.
2014-09-01 16:13:20 -04:00
TeoTwawki
73e53e8084 Updated blue_spell_mods.sql and spell_list.sql 2014-08-31 04:19:56 -04:00
Euda
b576c768bb Added spell names above sql insertion to match what I have been doing in item_mods.sql and item_latents.sql.
Added comments indicating modifications to player stats based on which blue spell was set in blue magic to match what I have been doing in item_mods.sql and item_latents.sql.

Corrected stats to the following spells:

1) Cocoon (Corrected Stat, was DEX, should be VIT)

Added stats to the following spells:

1) Maelstrom
2) MP Drainkiss
3) Self-Destruct
4) Blood Drain
5) Jettatura
6) Magic Fruit
7) Soporific
2014-01-18 10:36:46 -06:00
atom0s
d91549b194 SQL: Changed all tables to use MyISAM for much improved import / query times.
SQL: Changed all tables to use the charset of utf8.
2014-01-09 03:20:52 +00:00
teschnei
c2d47b3e03 CORE: setting blue magic now adds the associated stats. note: the stats will not show up until you close the "set spells" menu. Sorry, I don't know the correct packet for this.
SCRIPTS: added a few missing status effects on blue magic
DATABASE: added stats to blue_spell_mods.
Big thanks to Lithorn for doing all the database and scripts!
2013-02-16 20:58:41 +00:00
teschnei
7d7a10b50c SQL: added tables for blue magic
blue_spell_list:
spellid - corresponding spell id in spell_list table
mob_skill_id - corresponding mob_skill_id in mob_skill (only the one that teaches it!)
set_points - blue magic set points
trait_category - category to count towards job traits when set
trait_category_weight - number of points to count towards job traits when set (auto-refresh)

blue_spell_mods:
spellid - corresponding spellid in both spell_list and blue_spell_list
modid - modifier (enum) of stat to increase when set
value - value of stat to increase when set

note: this design was chosen in the case where blue magic spells may start giving different stats. the table is only loaded on startup so performance is not an issue
2013-01-29 01:44:22 +00:00