EQ2EMu/DB/updates/house_deposits.sql
Image a1f8fb9ed2 Deposit tab in the house supports deposits, track deposit history and escrow balance
In support of issue #125
- /house_deposit [??] [coin_amount] [status_amount] added
update query:
update commands set handler=518 where command='house_deposit';

- Escrow balance is tracked on the house
- Deposits are tracked for total and last deposit
- House upkeep payment now takes from escrow first
- character_house_deposits table added

CREATE TABLE `character_house_deposits` (
  `timestamp` int(10) unsigned NOT NULL DEFAULT 0,
  `house_id` int(10) unsigned NOT NULL DEFAULT 0,
  `instance_id` int(10) unsigned NOT NULL DEFAULT 0,
  `name` varchar(64) not null default '',
  `amount` bigint unsigned NOT NULL DEFAULT 0,
  `last_amount` bigint unsigned NOT NULL DEFAULT 0,
  `status` int(10) unsigned NOT NULL DEFAULT 0,
  `last_status` int(10) unsigned NOT NULL DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
2020-06-19 08:45:12 -04:00

11 lines
No EOL
539 B
SQL

update commands set handler=518 where command='house_deposit';
CREATE TABLE `character_house_deposits` (
`timestamp` int(10) unsigned NOT NULL DEFAULT 0,
`house_id` int(10) unsigned NOT NULL DEFAULT 0,
`instance_id` int(10) unsigned NOT NULL DEFAULT 0,
`name` varchar(64) not null default '',
`amount` bigint unsigned NOT NULL DEFAULT 0,
`last_amount` bigint unsigned NOT NULL DEFAULT 0,
`status` int(10) unsigned NOT NULL DEFAULT 0,
`last_status` int(10) unsigned NOT NULL DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=latin1;