mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-27 04:35:16 +01:00
Merge remote-tracking branch 'upstream/master'
This commit is contained in:
commit
2cd1226ac8
19
migration/changelog.md
Normal file
19
migration/changelog.md
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
# What's New in Harbor Database Schema
|
||||||
|
Changelog for harbor database schema
|
||||||
|
|
||||||
|
## 0.1.0
|
||||||
|
|
||||||
|
## 0.1.1
|
||||||
|
|
||||||
|
- create table `project_member`
|
||||||
|
- create table `schema_version`
|
||||||
|
- drop table `user_project_role`
|
||||||
|
- drop table `project_role`
|
||||||
|
- add column `creation_time` to table `user`
|
||||||
|
- add column `sysadmin_flag` to table `user`
|
||||||
|
- add column `update_time` to table `user`
|
||||||
|
- add column `role_mask` to table `role`
|
||||||
|
- add column `update_time` to table `project`
|
||||||
|
- delete data `AMDRWS` from table `role`
|
||||||
|
- delete data `A` from table `access`
|
||||||
|
|
@ -83,7 +83,7 @@ def upgrade():
|
|||||||
session.delete(role)
|
session.delete(role)
|
||||||
session.query(Role).update({Role.role_id: Role.role_id - 1})
|
session.query(Role).update({Role.role_id: Role.role_id - 1})
|
||||||
|
|
||||||
#delete M from table access
|
#delete A from table access
|
||||||
acc = session.query(Access).filter_by(access_id=1).first()
|
acc = session.query(Access).filter_by(access_id=1).first()
|
||||||
session.delete(acc)
|
session.delete(acc)
|
||||||
session.query(Access).update({Access.access_id: Access.access_id - 1})
|
session.query(Access).update({Access.access_id: Access.access_id - 1})
|
||||||
|
Loading…
Reference in New Issue
Block a user