chore(DB): import pending files
Referenced commit(s): de13bf426e162ee10cbd5470cec74122d1d4afa0
This commit is contained in:
parent
de13bf426e
commit
7b041946e1
@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "azerothcore-wotlk",
|
||||
"version": "6.0.0-dev.0",
|
||||
"version": "6.0.0-dev.1",
|
||||
"license": "AGPL3"
|
||||
}
|
||||
|
||||
31
data/sql/updates/db_world/2022_02_04_13.sql
Normal file
31
data/sql/updates/db_world/2022_02_04_13.sql
Normal file
@ -0,0 +1,31 @@
|
||||
-- DB update 2022_02_04_12 -> 2022_02_04_13
|
||||
DROP PROCEDURE IF EXISTS `updateDb`;
|
||||
DELIMITER //
|
||||
CREATE PROCEDURE updateDb ()
|
||||
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
|
||||
SELECT COUNT(*) INTO @COLEXISTS
|
||||
FROM information_schema.COLUMNS
|
||||
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_world' AND COLUMN_NAME = '2022_02_04_12';
|
||||
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
|
||||
START TRANSACTION;
|
||||
ALTER TABLE version_db_world CHANGE COLUMN 2022_02_04_12 2022_02_04_13 bit;
|
||||
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1643662892603722900'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
|
||||
--
|
||||
-- START UPDATING QUERIES
|
||||
--
|
||||
|
||||
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1643662892603722900');
|
||||
|
||||
UPDATE `creature_template` SET `RegenHealth` = 0 WHERE `RegenHealth` >= 2;
|
||||
UPDATE `creature_onkill_reputation` SET `IsTeamAward1` = 0 WHERE `IsTeamAward1` >= 2;
|
||||
UPDATE `creature_onkill_reputation` SET `IsTeamAward2` = 0 WHERE `IsTeamAward2` >= 2;
|
||||
|
||||
--
|
||||
-- END UPDATING QUERIES
|
||||
--
|
||||
UPDATE version_db_world SET date = '2022_02_04_13' WHERE sql_rev = '1643662892603722900';
|
||||
COMMIT;
|
||||
END //
|
||||
DELIMITER ;
|
||||
CALL updateDb();
|
||||
DROP PROCEDURE IF EXISTS `updateDb`;
|
||||
@ -1,5 +0,0 @@
|
||||
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1643662892603722900');
|
||||
|
||||
UPDATE `creature_template` SET `RegenHealth` = 0 WHERE `RegenHealth` >= 2;
|
||||
UPDATE `creature_onkill_reputation` SET `IsTeamAward1` = 0 WHERE `IsTeamAward1` >= 2;
|
||||
UPDATE `creature_onkill_reputation` SET `IsTeamAward2` = 0 WHERE `IsTeamAward2` >= 2;
|
||||
@ -1,3 +1,126 @@
|
||||
## 6.0.0-dev.1 | Commit: [de13bf426e162ee10cbd5470cec74122d1d4afa0
|
||||
](https://github.com/azerothcore/azerothcore-wotlk/commit/de13bf426e162ee10cbd5470cec74122d1d4afa0
|
||||
|
||||
|
||||
## How to upgrade
|
||||
- `PrepareStatment`
|
||||
|
||||
```diff
|
||||
- setNull(...)
|
||||
+ SetData(...)
|
||||
```
|
||||
```diff
|
||||
- setBool(...)
|
||||
+ SetData(...)
|
||||
```
|
||||
```diff
|
||||
- setUInt8(...)
|
||||
+ SetData(...)
|
||||
```
|
||||
```diff
|
||||
- setInt8(...)
|
||||
+ SetData(...)
|
||||
```
|
||||
```diff
|
||||
- setUInt16(...)
|
||||
+ SetData(...)
|
||||
```
|
||||
```diff
|
||||
- setInt16(...)
|
||||
+ SetData(...)
|
||||
```
|
||||
```diff
|
||||
- setUInt32(...)
|
||||
+ SetData(...)
|
||||
```
|
||||
```diff
|
||||
- setUInt64(...)
|
||||
+ SetData(...)
|
||||
```
|
||||
```diff
|
||||
- setInt64(...)
|
||||
+ SetData(...)
|
||||
```
|
||||
```diff
|
||||
- setFloat(...)
|
||||
+ SetData(...)
|
||||
```
|
||||
```diff
|
||||
- setDouble(...)
|
||||
+ SetData(...)
|
||||
```
|
||||
```diff
|
||||
- setString(...)
|
||||
+ SetData(...)
|
||||
```
|
||||
```diff
|
||||
- setStringView(...)
|
||||
+ SetData(...)
|
||||
```
|
||||
```diff
|
||||
- setBinary(...)
|
||||
+ SetData(...)
|
||||
```
|
||||
|
||||
- `Fields`
|
||||
|
||||
```diff
|
||||
- GetBool()
|
||||
+ Get<bool>()
|
||||
```
|
||||
```diff
|
||||
- GetUInt8()
|
||||
+ Get<uint8>()
|
||||
```
|
||||
```diff
|
||||
- GetInt8()
|
||||
+ Get<int8>()
|
||||
```
|
||||
```diff
|
||||
- GetUInt16()
|
||||
+ Get<uint16>()
|
||||
```
|
||||
```diff
|
||||
- GetInt16()
|
||||
+ Get<int16>()
|
||||
```
|
||||
```diff
|
||||
- GetUInt32()
|
||||
+ Get<uint32>()
|
||||
```
|
||||
```diff
|
||||
- GetInt32()
|
||||
+ Get<int32>()
|
||||
```
|
||||
```diff
|
||||
- GetUInt64()
|
||||
+ Get<uint64>()
|
||||
```
|
||||
```diff
|
||||
- GetInt64()
|
||||
+ Get<int64>()
|
||||
```
|
||||
```diff
|
||||
- GetFloat()
|
||||
+ Get<float>()
|
||||
```
|
||||
```diff
|
||||
- GetDouble()
|
||||
+ Get<double>()
|
||||
```
|
||||
```diff
|
||||
- GetString()
|
||||
+ Get<std::string>()
|
||||
```
|
||||
```diff
|
||||
- GetStringView()
|
||||
+ Get<std::string_view>()
|
||||
```
|
||||
```diff
|
||||
- GetBinary()
|
||||
+ Get<Binary>()
|
||||
```
|
||||
|
||||
## 5.0.0-dev.1 | Commit: [8b7df23f064f8c1c41aea222342b53f109c4e3b9
|
||||
](https://github.com/azerothcore/azerothcore-wotlk/commit/8b7df23f064f8c1c41aea222342b53f109c4e3b9
|
||||
|
||||
|
||||
@ -1,118 +0,0 @@
|
||||
## How to upgrade
|
||||
- `PrepareStatment`
|
||||
|
||||
```diff
|
||||
- setNull(...)
|
||||
+ SetData(...)
|
||||
```
|
||||
```diff
|
||||
- setBool(...)
|
||||
+ SetData(...)
|
||||
```
|
||||
```diff
|
||||
- setUInt8(...)
|
||||
+ SetData(...)
|
||||
```
|
||||
```diff
|
||||
- setInt8(...)
|
||||
+ SetData(...)
|
||||
```
|
||||
```diff
|
||||
- setUInt16(...)
|
||||
+ SetData(...)
|
||||
```
|
||||
```diff
|
||||
- setInt16(...)
|
||||
+ SetData(...)
|
||||
```
|
||||
```diff
|
||||
- setUInt32(...)
|
||||
+ SetData(...)
|
||||
```
|
||||
```diff
|
||||
- setUInt64(...)
|
||||
+ SetData(...)
|
||||
```
|
||||
```diff
|
||||
- setInt64(...)
|
||||
+ SetData(...)
|
||||
```
|
||||
```diff
|
||||
- setFloat(...)
|
||||
+ SetData(...)
|
||||
```
|
||||
```diff
|
||||
- setDouble(...)
|
||||
+ SetData(...)
|
||||
```
|
||||
```diff
|
||||
- setString(...)
|
||||
+ SetData(...)
|
||||
```
|
||||
```diff
|
||||
- setStringView(...)
|
||||
+ SetData(...)
|
||||
```
|
||||
```diff
|
||||
- setBinary(...)
|
||||
+ SetData(...)
|
||||
```
|
||||
|
||||
- `Fields`
|
||||
|
||||
```diff
|
||||
- GetBool()
|
||||
+ Get<bool>()
|
||||
```
|
||||
```diff
|
||||
- GetUInt8()
|
||||
+ Get<uint8>()
|
||||
```
|
||||
```diff
|
||||
- GetInt8()
|
||||
+ Get<int8>()
|
||||
```
|
||||
```diff
|
||||
- GetUInt16()
|
||||
+ Get<uint16>()
|
||||
```
|
||||
```diff
|
||||
- GetInt16()
|
||||
+ Get<int16>()
|
||||
```
|
||||
```diff
|
||||
- GetUInt32()
|
||||
+ Get<uint32>()
|
||||
```
|
||||
```diff
|
||||
- GetInt32()
|
||||
+ Get<int32>()
|
||||
```
|
||||
```diff
|
||||
- GetUInt64()
|
||||
+ Get<uint64>()
|
||||
```
|
||||
```diff
|
||||
- GetInt64()
|
||||
+ Get<int64>()
|
||||
```
|
||||
```diff
|
||||
- GetFloat()
|
||||
+ Get<float>()
|
||||
```
|
||||
```diff
|
||||
- GetDouble()
|
||||
+ Get<double>()
|
||||
```
|
||||
```diff
|
||||
- GetString()
|
||||
+ Get<std::string>()
|
||||
```
|
||||
```diff
|
||||
- GetStringView()
|
||||
+ Get<std::string_view>()
|
||||
```
|
||||
```diff
|
||||
- GetBinary()
|
||||
+ Get<Binary>()
|
||||
```
|
||||
Loading…
x
Reference in New Issue
Block a user