-
-
Notifications
You must be signed in to change notification settings - Fork 647
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: files removed by resolving conflicts
- Loading branch information
Showing
3 changed files
with
31 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,29 @@ | ||
function onUpdateDatabase() | ||
return false -- true = There are others migrations file | false = this is the last migration file | ||
logger.info("Updating database to version 48 (House Auction)") | ||
|
||
db.query([[ | ||
ALTER TABLE `houses` | ||
DROP `bid`, | ||
DROP `bid_end`, | ||
DROP `last_bid`, | ||
DROP `highest_bidder` | ||
]]) | ||
|
||
db.query([[ | ||
ALTER TABLE `houses` | ||
ADD `bidder` int(11) NOT NULL DEFAULT '0', | ||
ADD `bidder_name` varchar(255) NOT NULL DEFAULT '', | ||
ADD `highest_bid` int(11) NOT NULL DEFAULT '0', | ||
ADD `internal_bid` int(11) NOT NULL DEFAULT '0', | ||
ADD `bid_end_date` int(11) NOT NULL DEFAULT '0', | ||
ADD `state` smallint(5) UNSIGNED NOT NULL DEFAULT '0', | ||
ADD `transfer_status` tinyint(1) DEFAULT '0' | ||
]]) | ||
|
||
db.query([[ | ||
ALTER TABLE `accounts` | ||
ADD `house_bid_id` int(11) NOT NULL DEFAULT '0' | ||
]]) | ||
|
||
return true | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
function onUpdateDatabase() | ||
return false -- true = There are others migrations file | false = this is the last migration file | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters