Add drops changeset

This commit is contained in:
P0nk
2025-06-27 09:56:48 +02:00
parent 2559879aaa
commit 33e5ea5bdf
2 changed files with 43 additions and 0 deletions

View File

@@ -0,0 +1,39 @@
CREATE TABLE lb_drop_data
(
id BIGINT NOT NULL AUTO_INCREMENT,
dropperid INT NOT NULL,
itemid INT NOT NULL DEFAULT '0',
minimum_quantity INT NOT NULL DEFAULT '1',
maximum_quantity INT NOT NULL DEFAULT '1',
questid INT NOT NULL DEFAULT '0',
chance INT NOT NULL DEFAULT '0',
PRIMARY KEY (id),
UNIQUE KEY (dropperid, itemid),
KEY mobid (dropperid),
INDEX (dropperid, itemid)
);
CREATE TABLE lb_drop_data_global
(
id BIGINT NOT NULL AUTO_INCREMENT,
continent TINYINT NOT NULL DEFAULT '-1',
itemid INT NOT NULL DEFAULT '0',
minimum_quantity INT NOT NULL DEFAULT '1',
maximum_quantity INT NOT NULL DEFAULT '1',
questid INT NOT NULL DEFAULT '0',
chance INT NOT NULL DEFAULT '0',
comments VARCHAR(45) DEFAULT NULL,
PRIMARY KEY (id),
KEY mobid (continent) USING BTREE
);
CREATE TABLE lb_reactordrops
(
reactordropid INT UNSIGNED NOT NULL AUTO_INCREMENT,
reactorid INT NOT NULL,
itemid INT NOT NULL,
chance INT NOT NULL,
questid INT NOT NULL DEFAULT '-1',
PRIMARY KEY (reactordropid),
KEY reactorid (reactorid)
);

View File

@@ -37,4 +37,8 @@
<sqlFile path="db/008-keymap.sql"/>
</changeSet>
<changeSet id="9" author="Ponk">
<sqlFile path="db/009-drops.sql"/>
</changeSet>
</databaseChangeLog>