update: commission type and opt knowledge sort timestamp

This commit is contained in:
tokumeikoi
2021-07-14 20:08:30 +09:00
parent 88948eb8ee
commit 77aec7d553
7 changed files with 32 additions and 10 deletions

View File

@ -321,6 +321,7 @@ CREATE TABLE `v2_user` (
`password_algo` char(10) DEFAULT NULL,
`balance` int(11) NOT NULL DEFAULT '0',
`discount` int(11) DEFAULT NULL,
`commission_type` tinyint(4) NOT NULL DEFAULT '0' COMMENT '0: system 1: cycle 2: onetime',
`commission_rate` int(11) DEFAULT NULL,
`commission_balance` int(11) NOT NULL DEFAULT '0',
`t` int(11) NOT NULL DEFAULT '0',
@ -347,4 +348,4 @@ CREATE TABLE `v2_user` (
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- 2021-07-01 11:00:48
-- 2021-07-13 13:50:52

View File

@ -422,3 +422,6 @@ DROP `deleted_at`;
ALTER TABLE `v2_user`
ADD UNIQUE `email` (`email`),
DROP INDEX `email_deleted_at`;
ALTER TABLE `v2_user`
ADD `commission_type` tinyint NOT NULL DEFAULT '0' COMMENT '0: system 1: cycle 2: onetime' AFTER `discount`;