From ddfac919cbe4021c3090e69081dff52ecc0a6219 Mon Sep 17 00:00:00 2001 From: P0nk Date: Fri, 27 Jun 2025 10:25:01 +0200 Subject: [PATCH] Add storage changeset --- src/main/resources/db/010-storage.sql | 19 +++++++++++++++++++ src/main/resources/db/changelog.xml | 4 ++++ 2 files changed, 23 insertions(+) create mode 100644 src/main/resources/db/010-storage.sql diff --git a/src/main/resources/db/010-storage.sql b/src/main/resources/db/010-storage.sql new file mode 100644 index 0000000000..8c271e359b --- /dev/null +++ b/src/main/resources/db/010-storage.sql @@ -0,0 +1,19 @@ +CREATE TABLE lb_storages +( + storageid INT UNSIGNED NOT NULL AUTO_INCREMENT, + accountid INT NOT NULL DEFAULT '0', + world INT NOT NULL, + slots INT NOT NULL DEFAULT '0', + meso INT NOT NULL DEFAULT '0', + PRIMARY KEY (storageid) +); + +CREATE TABLE lb_fredstorage +( + id INT UNSIGNED NOT NULL AUTO_INCREMENT, + cid INT UNSIGNED NOT NULL, + daynotes INT UNSIGNED NOT NULL, + timestamp TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, + UNIQUE KEY cid_2 (cid), + PRIMARY KEY (id) +); \ No newline at end of file diff --git a/src/main/resources/db/changelog.xml b/src/main/resources/db/changelog.xml index f8f5e8d9ea..f78175518e 100644 --- a/src/main/resources/db/changelog.xml +++ b/src/main/resources/db/changelog.xml @@ -41,4 +41,8 @@ + + + + \ No newline at end of file