Merge remote-tracking branch 'upstream/master'

This commit is contained in:
wemeya 2016-05-18 17:46:57 +08:00
commit 2cd1226ac8
2 changed files with 20 additions and 1 deletions

19
migration/changelog.md Normal file
View 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`

View File

@ -83,7 +83,7 @@ def upgrade():
session.delete(role)
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()
session.delete(acc)
session.query(Access).update({Access.access_id: Access.access_id - 1})