2016-05-17 08:01:38 +02:00
|
|
|
# What's New in Harbor Database Schema
|
|
|
|
Changelog for harbor database schema
|
|
|
|
|
|
|
|
## 0.1.0
|
|
|
|
|
|
|
|
## 0.1.1
|
2016-05-17 08:33:56 +02:00
|
|
|
|
2016-05-18 05:02:53 +02:00
|
|
|
- create table `project_member`
|
2016-05-18 05:00:32 +02:00
|
|
|
- create table `schema_version`
|
2016-05-18 05:02:53 +02:00
|
|
|
- drop table `user_project_role`
|
|
|
|
- drop table `project_role`
|
2016-05-17 08:33:56 +02:00
|
|
|
- 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`
|
2016-05-18 08:47:57 +02:00
|
|
|
- delete data `AMDRWS` from table `role`
|
2016-05-18 05:02:53 +02:00
|
|
|
- delete data `A` from table `access`
|
|
|
|
|
2016-08-11 08:02:53 +02:00
|
|
|
## 0.3.0
|
2016-06-22 06:22:02 +02:00
|
|
|
|
|
|
|
- create table `replication_policy`
|
|
|
|
- create table `replication_target`
|
|
|
|
- create table `replication_job`
|
|
|
|
- add column `repo_tag` to table `access_log`
|
|
|
|
- alter column `repo_name` on table `access_log`
|
|
|
|
- alter column `email` on table `user`
|
2016-08-11 08:02:53 +02:00
|
|
|
|
2016-09-18 12:54:30 +02:00
|
|
|
## 0.4.0
|
2016-08-11 08:02:53 +02:00
|
|
|
|
|
|
|
- add index `pid_optime (project_id, op_time)` on table `access_log`
|
|
|
|
- add index `poid_uptime (policy_id, update_time)` on table `replication_job`
|
|
|
|
- add column `deleted` to table `replication_policy`
|
2016-09-05 04:58:35 +02:00
|
|
|
- alter column `username` on table `user`: varchar(15)->varchar(32)
|
2016-09-18 12:54:30 +02:00
|
|
|
- alter column `password` on table `replication_target`: varchar(40)->varchar(128)
|
2016-09-05 04:58:35 +02:00
|
|
|
- alter column `email` on table `user`: varchar(128)->varchar(255)
|
|
|
|
- alter column `name` on table `project`: varchar(30)->varchar(41)
|
|
|
|
- create table `repository`
|
|
|
|
- alter column `password` on table `replication_target`: varchar(40)->varchar(128)
|
2017-04-27 12:19:28 +02:00
|
|
|
|
|
|
|
## 1.2.0
|
|
|
|
|
|
|
|
- delete column `owner_id` from table `repository`
|
2017-05-03 04:43:57 +02:00
|
|
|
- delete column `user_id` from table `access_log`
|
|
|
|
- delete foreign key (user_id) references user(user_id)from table `access_log`
|
2017-05-10 12:28:19 +02:00
|
|
|
- delete foreign key (project_id) references project(project_id)from table `access_log`
|
2017-07-05 12:34:40 +02:00
|
|
|
- add column `username` varchar (32) to table `access_log`
|
2017-07-25 04:48:12 +02:00
|
|
|
- alter column `realname` on table `user`: varchar(20)->varchar(255)
|
|
|
|
- create table `img_scan_job`
|
|
|
|
- create table `img_scan_overview`
|
2017-09-28 07:52:53 +02:00
|
|
|
- create table `clair_vuln_timestamp`
|
|
|
|
|
|
|
|
## 1.3.0
|
|
|
|
|
|
|
|
- create table `project_metadata`
|
2017-09-29 10:37:43 +02:00
|
|
|
- insert data into table `project_metadata`
|
2017-09-22 09:08:10 +02:00
|
|
|
- delete column `public` from table `project`
|
|
|
|
- add column `insecure` to table `replication_target`
|
2017-11-02 05:53:01 +01:00
|
|
|
|
2018-01-16 08:38:05 +01:00
|
|
|
## 1.4.0
|
2017-11-02 05:53:01 +01:00
|
|
|
|
|
|
|
- add column `filters` to table `replication_policy`
|
|
|
|
- add column `replicate_deletion` to table `replication_policy`
|
2017-12-13 06:40:24 +01:00
|
|
|
- create table `replication_immediate_trigger`
|
2017-11-15 07:49:14 +01:00
|
|
|
- add pk `id` to table `properties`
|
2018-01-16 08:38:05 +01:00
|
|
|
- remove pk index from column 'k' of table `properties`
|
|
|
|
- alter `name` length from 41 to 256 of table `project`
|
2018-03-07 06:20:28 +01:00
|
|
|
|
|
|
|
## 1.5.0
|
|
|
|
|
2018-03-12 10:13:01 +01:00
|
|
|
- create table `harbor_label`
|
2018-03-21 09:45:21 +01:00
|
|
|
- create table `harbor_resource_label`
|
|
|
|
- create table `user_group`
|
|
|
|
- modify table `project_member` use `id` as PK and add column `entity_type` to indicate if the member is user or group.
|
2018-03-23 10:45:50 +01:00
|
|
|
- add `job_uuid` column to `replication_job` and `img_scan_job`
|
2018-03-28 08:02:53 +02:00
|
|
|
- add index `poid_status` in table replication_job
|
|
|
|
- add index `idx_status`, `idx_status`, `idx_digest`, `idx_repository_tag` in table img_scan_job
|
2018-06-07 10:05:50 +02:00
|
|
|
|
|
|
|
## 1.6.0
|
|
|
|
|
2018-08-29 12:54:00 +02:00
|
|
|
- add `deleted` column to table `harbor_label`
|
|
|
|
|
|
|
|
## 1.7.0
|
|
|
|
|
|
|
|
- alter column `v` on table `properties`: varchar(128)->varchar(1024)
|