udpate rdb sql

This commit is contained in:
710leo 2020-11-17 18:32:52 +08:00
parent a659820b07
commit bddd93cd80
2 changed files with 4 additions and 2 deletions

View File

@ -17,6 +17,8 @@ CREATE TABLE `user`
`portrait` varchar(2048) not null default '',
`intro` varchar(2048) not null default '',
`organization` varchar(255) not null default '',
`typ` tinyint(1) not null default 1 comment '0: temporary account; 1: long-term account'
`status` tinyint(1) not null default 1 comment '0: disabled; 1: active 2: inactive'
`is_root` tinyint(1) not null,
`leader_id` int unsigned not null default 0,
`leader_name` varchar(32) not null default '',

View File

@ -33,5 +33,5 @@ alter table user add column create_at timestamp not null default CURRENT_TIMESTA
update user set create_at = '2020-11-14 17:00:08';
alter table user add `organization` varchar(255) not null default '' after intro;
alter table user add `typ` int(1) not null default 1 comment '0: temporary account; 1: long-term account' after intro;
alter table user add `status` int(1) not null default 1 comment '0: disabled; 1: active 2: inactive' after intro;
alter table user add `typ` tinyint(1) not null default 1 comment '0: temporary account; 1: long-term account' after intro;
alter table user add `status` tinyint(1) not null default 1 comment '0: disabled; 1: active 2: inactive' after intro;