Skip to content

Commit c5e746a

Browse files
committed
Indexed storage_id column from storage sql table
1 parent c8947dc commit c5e746a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

sql-files/main.sql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1002,7 +1002,8 @@ CREATE TABLE IF NOT EXISTS `storage` (
10021002
`bound` TINYINT UNSIGNED NOT NULL DEFAULT '0',
10031003
`unique_id` BIGINT UNSIGNED NOT NULL DEFAULT '0',
10041004
PRIMARY KEY (`id`),
1005-
KEY `account_id` (`account_id`)
1005+
KEY `account_id` (`account_id`),
1006+
KEY `storage_id` (`storage_id`)
10061007
) ENGINE=MyISAM;
10071008

10081009
CREATE TABLE IF NOT EXISTS `rodex_items` (

sql-files/upgrades/2024-11-03--07-00.sql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
-- You should have received a copy of the GNU General Public License
1919
-- along with this program. If not, see <http://www.gnu.org/licenses/>.
2020

21-
ALTER TABLE `storage` ADD `storage_id` INT UNSIGNED NOT NULL DEFAULT '1' AFTER `account_id`;
21+
ALTER TABLE `storage` ADD `storage_id` INT UNSIGNED NOT NULL DEFAULT '1' AFTER `account_id`,
22+
ADD INDEX `storage_id` (`storage_id`);
2223

2324
INSERT INTO `sql_updates` (`timestamp`) VALUES (1730631632);

0 commit comments

Comments
 (0)