Skip to content

Commit

Permalink
Restore original table and using alter table (#43)
Browse files Browse the repository at this point in the history
* Restore original table and using alter table

* update README

* update README
  • Loading branch information
pangolp authored Nov 2, 2024
1 parent 7cf41eb commit 7dc1b76
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 24 deletions.
18 changes: 18 additions & 0 deletions .github/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,21 @@ The Max XP Rate variable dictates how high a player can set their XP rate. While
# Video Showcase

[![Youtube Link](https://i.imgur.com/Jhrdgv6.png)](https://www.youtube.com/watch?v=T6UEX47mPeE)

> [!IMPORTANT]
> If you no longer use the module, remember to delete any tables or values added within them.
### Database World

```sql
DELETE FROM `command` WHERE `name` IN ('xp', 'xp set', 'xp view', 'xp default', 'xp enable', 'xp disable');

SET @ENTRY:=35411;
DELETE FROM `acore_string` WHERE `entry` BETWEEN @ENTRY+0 AND @ENTRY+9;
```

### Database Characters

```sql
DROP TABLE `individualxp`;
```
5 changes: 5 additions & 0 deletions data/sql/db-characters/base/2024_11_02_00_mod_xp.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
CREATE TABLE IF NOT EXISTS `individualxp` (
`CharacterGUID` int(11) NOT NULL,
`XPRate` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`CharacterGUID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
2 changes: 2 additions & 0 deletions data/sql/db-characters/base/2024_11_02_01_mod_xp.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ALTER TABLE `individualxp`
MODIFY `XPRate` FLOAT NOT NULL DEFAULT '1';
24 changes: 0 additions & 24 deletions data/sql/db-characters/base/mod_individual_xp_IndividualXP.sql

This file was deleted.

0 comments on commit 7dc1b76

Please sign in to comment.