diff --git a/migration/changelog.md b/migration/changelog.md new file mode 100644 index 000000000..ab14c17d5 --- /dev/null +++ b/migration/changelog.md @@ -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` + diff --git a/migration/migration_harbor/versions/0_1_1.py b/migration/migration_harbor/versions/0_1_1.py index 746446f39..ecec2cfb3 100644 --- a/migration/migration_harbor/versions/0_1_1.py +++ b/migration/migration_harbor/versions/0_1_1.py @@ -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})