Skip to content

Commit

Permalink
Indexed storage_id column from storage sql table
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonch35 committed Dec 1, 2024
1 parent c8947dc commit c5e746a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion sql-files/main.sql
Original file line number Diff line number Diff line change
Expand Up @@ -1002,7 +1002,8 @@ CREATE TABLE IF NOT EXISTS `storage` (
`bound` TINYINT UNSIGNED NOT NULL DEFAULT '0',
`unique_id` BIGINT UNSIGNED NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `account_id` (`account_id`)
KEY `account_id` (`account_id`),
KEY `storage_id` (`storage_id`)
) ENGINE=MyISAM;

CREATE TABLE IF NOT EXISTS `rodex_items` (
Expand Down
3 changes: 2 additions & 1 deletion sql-files/upgrades/2024-11-03--07-00.sql
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
-- You should have received a copy of the GNU General Public License
-- along with this program. If not, see <http://www.gnu.org/licenses/>.

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

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

0 comments on commit c5e746a

Please sign in to comment.