From 203f4bf34f85c7afb908a208059dbed093640508 Mon Sep 17 00:00:00 2001 From: P0nk Date: Fri, 27 Jun 2025 09:25:06 +0200 Subject: [PATCH] Add quest changeset --- src/main/resources/db/006-quest.sql | 41 +++++++++++++++++++++++++++++ src/main/resources/db/changelog.xml | 4 +++ 2 files changed, 45 insertions(+) create mode 100644 src/main/resources/db/006-quest.sql diff --git a/src/main/resources/db/006-quest.sql b/src/main/resources/db/006-quest.sql new file mode 100644 index 0000000000..fe03426802 --- /dev/null +++ b/src/main/resources/db/006-quest.sql @@ -0,0 +1,41 @@ +CREATE TABLE lb_questactions +( + questactionid INT UNSIGNED NOT NULL AUTO_INCREMENT, + questid INT NOT NULL DEFAULT '0', + status INT NOT NULL DEFAULT '0', + data BLOB NOT NULL, + PRIMARY KEY (questactionid) +); + +CREATE TABLE lb_questprogress +( + id INT UNSIGNED NOT NULL AUTO_INCREMENT, + characterid INT NOT NULL, + queststatusid INT UNSIGNED NOT NULL DEFAULT '0', + progressid INT NOT NULL DEFAULT '0', + progress VARCHAR(15) CHARACTER SET latin1 COLLATE latin1_german1_ci NOT NULL DEFAULT '', + PRIMARY KEY (id) +); + +CREATE TABLE lb_questrequirements +( + questrequirementid INT UNSIGNED NOT NULL AUTO_INCREMENT, + questid INT NOT NULL DEFAULT '0', + status INT NOT NULL DEFAULT '0', + data BLOB NOT NULL, + PRIMARY KEY (questrequirementid) +); + +CREATE TABLE lb_queststatus +( + queststatusid INT UNSIGNED NOT NULL AUTO_INCREMENT, + characterid INT NOT NULL DEFAULT '0', + quest INT NOT NULL DEFAULT '0', + status INT NOT NULL DEFAULT '0', + time INT NOT NULL DEFAULT '0', + expires BIGINT NOT NULL DEFAULT '0', + forfeited INT NOT NULL DEFAULT '0', + completed INT NOT NULL DEFAULT '0', + info TINYINT NOT NULL DEFAULT '0', + PRIMARY KEY (queststatusid) +); \ No newline at end of file diff --git a/src/main/resources/db/changelog.xml b/src/main/resources/db/changelog.xml index 6655642144..93330b99ea 100644 --- a/src/main/resources/db/changelog.xml +++ b/src/main/resources/db/changelog.xml @@ -25,4 +25,8 @@ + + + + \ No newline at end of file