Skip to content

Commit

Permalink
deprecate resource label (#19349)
Browse files Browse the repository at this point in the history
There is no api is using the DAO, remove it from the source code.

Signed-off-by: wang yan <wangyan@vmware.com>
  • Loading branch information
wy65701436 authored Sep 13, 2023
1 parent 97b2851 commit ed370a4
Show file tree
Hide file tree
Showing 11 changed files with 1 addition and 775 deletions.
1 change: 1 addition & 0 deletions make/migrations/postgresql/0130_2.10.0_schema.up.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DROP TABLE IF EXISTS harbor_resource_label;
130 changes: 0 additions & 130 deletions src/common/dao/resource_label.go

This file was deleted.

100 changes: 0 additions & 100 deletions src/common/dao/resource_label_test.go

This file was deleted.

1 change: 0 additions & 1 deletion src/common/models/base.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import (
func init() {
orm.RegisterModel(
new(Role),
new(ResourceLabel),
new(OIDCUser),
)
}
43 changes: 0 additions & 43 deletions src/common/models/label.go

This file was deleted.

90 changes: 0 additions & 90 deletions src/common/models/label_test.go

This file was deleted.

Loading

0 comments on commit ed370a4

Please sign in to comment.