Skip to content

Commit

Permalink
feat: add Id to CasbinRule
Browse files Browse the repository at this point in the history
  • Loading branch information
hsluoyz committed Nov 2, 2023
1 parent e8b7563 commit f747fa4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.14
go-version: 1.16

- uses: actions/checkout@v2
- name: Run Unit tests
Expand All @@ -55,7 +55,7 @@ jobs:
- uses: actions/checkout@v2

- name: Run semantic-release
if: github.repository == 'casbin/xorm-adapter' && github.event_name == 'push'
if: github.repository == 'casdoor/xorm-adapter' && github.event_name == 'push'
run: |
npm install --save-dev [email protected]
npx semantic-release
Expand Down
2 changes: 1 addition & 1 deletion adapter.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ func (the *CasbinRule) TableName() string {
return the.tableName
}

// CasbinRule .
type CasbinRule struct {
Id int64 `xorm:"pk autoincr"`
Ptype string `xorm:"varchar(100) index not null default ''"`
V0 string `xorm:"varchar(100) index not null default ''"`
V1 string `xorm:"varchar(100) index not null default ''"`
Expand Down

0 comments on commit f747fa4

Please sign in to comment.