Comments (1)
I don't know how to commit sql fixes
Open the sql
directory in a terminal and run one of the following scripts (depending on your operating system/environment):
./touch_migration.sh
# or
python make_migration.py
If you are on Windows, you can instead also run the make_migration.bat
script, afaik simply by double-clicking it in Windows Explorer (and I am sure you can run it from a cmd or PowerShell session too).
All of these scripts should produce a new, time-stamped file in sql/migrations
, e.g., /sql/migrations/20240620215951_world.sql
, which will look like this:
DROP PROCEDURE IF EXISTS add_migration;
DELIMITER ??
CREATE PROCEDURE `add_migration`()
BEGIN
DECLARE v INT DEFAULT 1;
SET v = (SELECT COUNT(*) FROM `migrations` WHERE `id`='20240620215951');
IF v = 0 THEN
INSERT INTO `migrations` VALUES ('20240620215951');
-- Add your query below.
-- End of migration.
END IF;
END??
DELIMITER ;
CALL add_migration();
DROP PROCEDURE IF EXISTS add_migration;
Now you'll simply have to add your SQL statements between the -- Add your query below.
and the -- End of migration.
comments and make a PR that includes this new file.
Note that the SQL syntax/style should match the existing migrations. E.g., in the fix you posted (without checking the fix itself) you would have to remove the database name (because it shouldn't be assumed that the database name will always be mangos
), so instead of
UPDATE `mangos`.`creature_template` -- ...
you would just write
UPDATE `creature_template` -- ...
from core.
Related Issues (20)
- 🦂 [Bug]In Scholomance Academy, there will be a phenomenon where monsters cannot attack players, and players cannot attack monsters. HOT 2
- 🦂 [Bug]In Naxx Plague Area, The Oozer will restore HP full every time it changes color HOT 1
- 🐛 [Bug] Dueling in Ironforge.
- 🐝 [Bug]The Treasure of the Shen'dralar can accept quest twice
- 🐛 [Bug]Twilight Flamereaver wrong immolate spell Id
- 🦂 [Bug]NAXX Patchwerk Hateful Strike range too large HOT 1
- 🐛 [Bug][Priority: 4][Anticheat][BadFallStop] It kicks if you jump at the end of bg.
- 🚀 [Feature]
- 🦂 [Bug] Hunters can earn money by constantly killing bosses in the Scarlet Abbey Cathedral HOT 1
- 🐛 [Bug] I test ( 2024/4/17 22:41:43) update can High CPU usage >15% HOT 2
- 🦂 [Bug]Diremaul HOT 4
- 🦂 [Bug] No cooldown for UBRS stadium attempts
- Generate realmd `VersionChallenge` on the fly HOT 2
- 🐛 [Bug] Stealth range not correct for bosses
- 🐛 [Bug] Captain Blackanvil shouldn't always be spawned.
- 🐛 [Bug] Swiftmend crash fix
- 🐛 [Bug] GM commands , add new Item ( bind when picked up) could be traded. HOT 1
- 🐛 [Bug] Anticheat false positive
- 🐛 [Bug]Infinite crash error during startup when using the latest build
- 🐝 [Bug]The Only Prescription task cannot be obtained Chapter 7 Draconic for Dummies HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from core.