Hi what is the best practice to increase the column size of permissions_rule table (https://github.com/casdoor/casdoor/blob/0b575ccf84e6fe9e7ab6365e7d54b06137937c9b/object/permission_enforcer.go#L83-L82)
should we modify CasbinRule https://github.com/casdoor/xorm-adapter/blob/bcedf5e201da45e3a9c5837af3b4999d3fa06333/adapter.go#L37
and edit all the references in casdoor project or just update the table after deploying the server ?
latter seems to be more correct?
its simpler to update the DB with some script to increase the v0 size to varchar(1000)
( checked and it works )
but wanted to know if anyone done it before as it defined in the XORM adapter (in the code) as varchar(100)
and I was afraid it has some validation on the field size before trying to commit /sync changes

no size checks here
feel free to modify it
Join the conversation
Sign up to reply, like and follow topics.
Suggested Topics
Want to read more? Browse other topics in Casdoor or view latest topics.
1 / 4
Jun 2024
