mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 13:37:00 +00:00
[7267] Drop auctionhouse.location.
This commit is contained in:
parent
2d242c86a8
commit
50b6bfd7f1
5 changed files with 12 additions and 6 deletions
|
|
@ -21,7 +21,7 @@
|
||||||
|
|
||||||
DROP TABLE IF EXISTS `character_db_version`;
|
DROP TABLE IF EXISTS `character_db_version`;
|
||||||
CREATE TABLE `character_db_version` (
|
CREATE TABLE `character_db_version` (
|
||||||
`required_7255_01_characters_characters` bit(1) default NULL
|
`required_7267_01_characters_auctionhouse` bit(1) default NULL
|
||||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Last applied sql update to DB';
|
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Last applied sql update to DB';
|
||||||
|
|
||||||
--
|
--
|
||||||
|
|
@ -150,7 +150,6 @@ CREATE TABLE `auctionhouse` (
|
||||||
`lastbid` int(11) NOT NULL default '0',
|
`lastbid` int(11) NOT NULL default '0',
|
||||||
`startbid` int(11) NOT NULL default '0',
|
`startbid` int(11) NOT NULL default '0',
|
||||||
`deposit` int(11) NOT NULL default '0',
|
`deposit` int(11) NOT NULL default '0',
|
||||||
`location` tinyint(3) unsigned NOT NULL default '3',
|
|
||||||
PRIMARY KEY (`id`),
|
PRIMARY KEY (`id`),
|
||||||
UNIQUE KEY `item_guid` (`itemguid`)
|
UNIQUE KEY `item_guid` (`itemguid`)
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||||
|
|
|
||||||
5
sql/updates/7267_01_characters_auctionhouse.sql
Normal file
5
sql/updates/7267_01_characters_auctionhouse.sql
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
ALTER TABLE character_db_version CHANGE COLUMN required_7255_01_characters_characters required_7267_01_characters_auctionhouse bit;
|
||||||
|
|
||||||
|
ALTER TABLE auctionhouse
|
||||||
|
DROP COLUMN location;
|
||||||
|
|
||||||
|
|
@ -175,6 +175,7 @@ pkgdata_DATA = \
|
||||||
7252_01_mangos_command.sql \
|
7252_01_mangos_command.sql \
|
||||||
7252_02_mangos_mangos_string.sql \
|
7252_02_mangos_mangos_string.sql \
|
||||||
7255_01_characters_characters.sql \
|
7255_01_characters_characters.sql \
|
||||||
|
7267_01_characters_auctionhouse.sql \
|
||||||
README
|
README
|
||||||
|
|
||||||
## Additional files to include when running 'make dist'
|
## Additional files to include when running 'make dist'
|
||||||
|
|
@ -330,4 +331,5 @@ EXTRA_DIST = \
|
||||||
7252_01_mangos_command.sql \
|
7252_01_mangos_command.sql \
|
||||||
7252_02_mangos_mangos_string.sql \
|
7252_02_mangos_mangos_string.sql \
|
||||||
7255_01_characters_characters.sql \
|
7255_01_characters_characters.sql \
|
||||||
|
7267_01_characters_auctionhouse.sql \
|
||||||
README
|
README
|
||||||
|
|
|
||||||
|
|
@ -676,7 +676,7 @@ void AuctionEntry::DeleteFromDB() const
|
||||||
void AuctionEntry::SaveToDB() const
|
void AuctionEntry::SaveToDB() const
|
||||||
{
|
{
|
||||||
//No SQL injection (no strings)
|
//No SQL injection (no strings)
|
||||||
CharacterDatabase.PExecute("INSERT INTO auctionhouse (id,auctioneerguid,itemguid,item_template,itemowner,buyoutprice,time,buyguid,lastbid,startbid,deposit,location) "
|
CharacterDatabase.PExecute("INSERT INTO auctionhouse (id,auctioneerguid,itemguid,item_template,itemowner,buyoutprice,time,buyguid,lastbid,startbid,deposit) "
|
||||||
"VALUES ('%u', '%u', '%u', '%u', '%u', '%u', '" I64FMTD "', '%u', '%u', '%u', '%u', '%u')",
|
"VALUES ('%u', '%u', '%u', '%u', '%u', '%u', '" I64FMTD "', '%u', '%u', '%u', '%u')",
|
||||||
Id, auctioneer, item_guidlow, item_template, owner, buyout, (uint64)expire_time, bidder, bid, startbid, deposit, GetHouseId());
|
Id, auctioneer, item_guidlow, item_template, owner, buyout, (uint64)expire_time, bidder, bid, startbid, deposit);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "7266"
|
#define REVISION_NR "7267"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue