-
Notifications
You must be signed in to change notification settings - Fork 100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add any deprecated item to the disabled item table #63
base: master
Are you sure you want to change the base?
Conversation
Will add[deprecated](https://www.azerothcore.org/wiki/item_template#flags) items to the disabled table if they don't exist already.
@@ -366,3 +366,7 @@ VALUES | |||
(53890), (54069), (54860), (50840), (53891), (53924), (51997), (51998), (54847), (54857), (56806), (54212), (54452), (54810), (50093), (54822), | |||
(50289), (50301), (50307), (52189), (52202), (52272), (52275), (52276), (52345), (52562), (52563), (52565), (52729), (53510), (54218), (54455), | |||
(54467), (50248), (50431), (52011), (52062), (54291), (54470); | |||
|
|||
-- This adds any item with the deprecated flag (0x10) to the disabled item table as long as it isn't already in there. | |||
insert INTO acore_world.mod_auctionhousebot_disabled_items (item) SELECT t.entry FROM acore_world.mod_auctionhousebot_disabled_items AS d right JOIN acore_world.item_template t ON (d.item = t.entry) WHERE (Flags & 16) = 16 AND d.item IS NULL; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Plz don't write the database name, fix character case and just compare with other SQL statements above
but that seems like a good idea @georgzoeller |
seems good, but i cannot test (also haven't done mysql for 1+ year :P) |
I had a bunch of "test" items in my AH. |
Will adddeprecated items to the disabled table if they don't exist already.