| 1234567891011121314151617181920212223242526 |
- INSERT INTO `country` VALUES ('40', '阿联酋', 'ae');
- INSERT INTO `country` VALUES ('41', '南非', 'za');
- INSERT INTO `country` VALUES ('42', '缅甸', 'mm');
- INSERT INTO `country` VALUES ('43', '冰岛', 'is');
- INSERT INTO `country` VALUES ('44', '芬兰', 'fi');
- INSERT INTO `country` VALUES ('45', '卢森堡', 'lu');
- INSERT INTO `country` VALUES ('46', '比利时', 'be');
- -- 用户余额字段由decimal改为int,数值变大十倍
- ALTER TABLE `user` MODIFY `balance` int(11) NOT NULL DEFAULT '0' COMMENT '余额,单位分'
- UPDATE `user` SET balance = balance * 100;
- DROP TABLE `user_balance_log`;
- CREATE TABLE `user_balance_log` (
- `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
- `user_id` int(11) NOT NULL DEFAULT '0' COMMENT '账号ID',
- `order_id` int(11) NOT NULL DEFAULT '0' COMMENT '订单ID',
- `before` int(11) NOT NULL DEFAULT '0' COMMENT '发生前余额,单位分',
- `after` int(11) NOT NULL DEFAULT '0' COMMENT '发生后金额,单位分',
- `amount` int(11) NOT NULL DEFAULT '0' COMMENT '发生金额,单位分',
- `desc` varchar(255) DEFAULT '' COMMENT '操作描述',
- `created_at` datetime DEFAULT NULL COMMENT '创建时间',
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|