Indexed storage_id column from storage sql table

This commit is contained in:
jsn 2024-12-01 20:08:31 +08:00 committed by Ibrahim Zidan
parent 327e69c8d6
commit 5559ff08f6
No known key found for this signature in database
GPG key ID: 0F0A43C7FE4C7B9A
2 changed files with 4 additions and 2 deletions

View file

@ -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` (

View file

@ -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);