Skip to content

Commit

Permalink
add accountwide stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
hatersgit committed Feb 12, 2024
1 parent c028d10 commit 34facb5
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 25 deletions.
23 changes: 23 additions & 0 deletions data/sql/custom/db_characters/20230101_01.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
CREATE TABLE `acore_characters`.`character_accountwide_reputation` (
`accountId` INT UNSIGNED NOT NULL,
`factionGroup` INT UNSIGNED NOT NULL,
`factionId` INT UNSIGNED NOT NULL,
`rep` INT UNSIGNED NULL,
PRIMARY KEY (`accountId`, `factionGroup`, `factionId`));


CREATE TABLE `acore_characters`.`character_accountwide_taxi` (
`accountId` INT UNSIGNED NOT NULL,
`faction` INT UNSIGNED NOT NULL,
`node` INT UNSIGNED NOT NULL,
PRIMARY KEY (`accountId`, `faction`, `node`));

CREATE TABLE `acore_characters`.`character_accountwide_title` (
`accountId` INT UNSIGNED NOT NULL,
`title` INT UNSIGNED NOT NULL,
PRIMARY KEY (`accountId`, `title`));

CREATE TABLE `acore_characters`.`character_accountwide_mount` (
`accountId` INT UNSIGNED NOT NULL,
`spellId` INT UNSIGNED NOT NULL,
PRIMARY KEY (`accountId`, `spellId`));
25 changes: 0 additions & 25 deletions modules/mod-account-wide/sql/characters/base/structure.sql
Original file line number Diff line number Diff line change
@@ -1,25 +0,0 @@
-- Put only sql structure in this file (create table if exists, delete table, alter table etc...).
-- If you don't use this database, then delete this file.
CREATE TABLE `acore_characters`.`character_accountwide_reputation` (
`accountId` INT UNSIGNED NOT NULL,
`factionGroup` INT UNSIGNED NOT NULL,
`factionId` INT UNSIGNED NOT NULL,
`rep` INT UNSIGNED NULL,
PRIMARY KEY (`accountId`, `factionGroup`, `factionId`));


CREATE TABLE `acore_characters`.`character_accountwide_taxi` (
`accountId` INT UNSIGNED NOT NULL,
`faction` INT UNSIGNED NOT NULL,
`node` INT UNSIGNED NOT NULL,
PRIMARY KEY (`accountId`, `faction`, `node`));

CREATE TABLE `acore_characters`.`character_accountwide_title` (
`accountId` INT UNSIGNED NOT NULL,
`title` INT UNSIGNED NOT NULL,
PRIMARY KEY (`accountId`, `title`));

CREATE TABLE `acore_characters`.`character_accountwide_mount` (
`accountId` INT UNSIGNED NOT NULL,
`spellId` INT UNSIGNED NOT NULL,
PRIMARY KEY (`accountId`, `spellId`));

0 comments on commit 34facb5

Please sign in to comment.