Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ jobs:

steps:
- name: Set up Go
uses: actions/setup-go@v2
uses: actions/setup-go@v4
with:
go-version: 1.19
go-version: 1.21

- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Run Unit tests
run: go test -v -coverprofile=profile.cov ./...

Expand All @@ -52,7 +52,7 @@ jobs:
runs-on: ubuntu-latest
steps:

- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Run semantic-release
if: github.repository == 'casbin/xorm-adapter' && github.event_name == 'push'
Expand Down
14 changes: 7 additions & 7 deletions adapter.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ func (the *CasbinRule) TableName() string {

// CasbinRule .
type CasbinRule struct {
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 ''"`
V2 string `xorm:"varchar(100) index not null default ''"`
V3 string `xorm:"varchar(100) index not null default ''"`
V4 string `xorm:"varchar(100) index not null default ''"`
V5 string `xorm:"varchar(100) index not null default ''"`
Ptype string `xorm:"varchar(100) index(IF NOT EXISTS) not null default ''"`
V0 string `xorm:"varchar(100) index(IF NOT EXISTS) not null default ''"`
V1 string `xorm:"varchar(100) index(IF NOT EXISTS) not null default ''"`
V2 string `xorm:"varchar(100) index(IF NOT EXISTS) not null default ''"`
V3 string `xorm:"varchar(100) index(IF NOT EXISTS) not null default ''"`
V4 string `xorm:"varchar(100) index(IF NOT EXISTS) not null default ''"`
V5 string `xorm:"varchar(100) index(IF NOT EXISTS) not null default ''"`

tableName string `xorm:"-"`
}
Expand Down
Loading