game2004api/sql/gamedb2004_n_migrate_200604_01.sql
aozhiwei b405645f2e 1
2020-06-04 16:22:56 +08:00

26 lines
1018 B
PL/PgSQL

begin;
UPDATE user set season_time=1591459199 WHERE season_time=0;
DROP TABLE IF EXISTS `equip`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `equip` (
`idx` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增id',
`accountid` varchar(60) NOT NULL DEFAULT '' COMMENT '账号id',
`id` int(11) NOT NULL DEFAULT '0' COMMENT '装备id',
`lv` int(11) NOT NULL DEFAULT '0' COMMENT '装备等级',
`active_time` int(11) NOT NULL DEFAULT '0' COMMENT '进阶时间',
`sub_time` int(11) NOT NULL DEFAULT '0' COMMENT '缩短时间',
`create_time` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间',
`modify_time` int(11) NOT NULL DEFAULT '0' COMMENT '修改时间',
`using_id` int(11) NOT NULL DEFAULT '0' COMMENT '上阵id',
PRIMARY KEY (`idx`),
UNIQUE KEY `accountid_id` (`accountid`, id)
) ENGINE=InnoDB AUTO_INCREMENT=10001 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
insert into version (version) values(20200604);
commit;