mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-22 02:05:41 +01:00
update user realname
update
This commit is contained in:
parent
d849c36e3f
commit
bdf4641c43
@ -44,4 +44,5 @@ Changelog for harbor database schema
|
||||
- delete column `user_id` from table `access_log`
|
||||
- delete foreign key (user_id) references user(user_id)from table `access_log`
|
||||
- delete foreign key (project_id) references project(project_id)from table `access_log`
|
||||
- add column `username` varchar (32) to table `access_log`
|
||||
- add column `username` varchar (32) to table `access_log`
|
||||
- alter column `realname` on table `user`: varchar(20)->varchar(255)
|
@ -38,6 +38,8 @@ def upgrade():
|
||||
"""
|
||||
bind = op.get_bind()
|
||||
session = Session(bind=bind)
|
||||
|
||||
op.alter_column('user', 'realname', type_=sa.String(255), existing_type=sa.String(20))
|
||||
|
||||
#delete column access_log.user_id(access_log_ibfk_1), access_log.project_id(access_log_ibfk_2)
|
||||
op.drop_constraint('access_log_ibfk_1', 'access_log', type_='foreignkey')
|
||||
|
Loading…
Reference in New Issue
Block a user