Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Server Development
Habbo Retros
Habbo Releases
Server Releases
[PLUS] Randomly numbered Limited Edition.
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Sledmore" data-source="post: 447220" data-attributes="member: 591"><p>Spooky timing, was literally planning to do this today, what a time saver - thanks for the release.</p><p></p><p>I'd probably just consider adding a foreign key to the table in relation to the items table, and probably adding two indexes, for example:</p><p></p><p>[CODE]</p><p>CREATE TABLE `catalog_items_limited` (</p><p> `id` int(11) NOT NULL AUTO_INCREMENT,</p><p> `number` int(11) NOT NULL DEFAULT 0,</p><p> `item_id` int(11) NOT NULL DEFAULT 0,</p><p> PRIMARY KEY (`id`) USING BTREE,</p><p> UNIQUE INDEX `number, item_id`(`number`, `item_id`) USING BTREE,</p><p> INDEX `item_id`(`item_id`) USING BTREE</p><p>) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = Dynamic;</p><p>[/CODE]</p></blockquote><p></p>
[QUOTE="Sledmore, post: 447220, member: 591"] Spooky timing, was literally planning to do this today, what a time saver - thanks for the release. I'd probably just consider adding a foreign key to the table in relation to the items table, and probably adding two indexes, for example: [CODE] CREATE TABLE `catalog_items_limited` ( `id` int(11) NOT NULL AUTO_INCREMENT, `number` int(11) NOT NULL DEFAULT 0, `item_id` int(11) NOT NULL DEFAULT 0, PRIMARY KEY (`id`) USING BTREE, UNIQUE INDEX `number, item_id`(`number`, `item_id`) USING BTREE, INDEX `item_id`(`item_id`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = Dynamic; [/CODE] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Releases
Server Releases
[PLUS] Randomly numbered Limited Edition.
Top