cychiuae / casbin-pg-adapter

PostgreSQL adapter for Casbin
Apache License 2.0
9 stars 6 forks source link

Failed to create index #2

Closed cantv6605-seta closed 4 years ago

cantv6605-seta commented 4 years ago

I'm using DB with some schemas. How can I create new cabin table in a schema DB? I tried and got an error message: with tableName = "ABC.auth_permission" Cannot create index for column: p_type. Error: pq: syntax error at or near "."

Index query like: CREATE INDEX IF NOT EXISTS idx_ABC.auth_permission_p_type ON ABC.auth_permission (p_type)

Please help to fix it. Thanks!

cantv6605-seta commented 4 years ago

@cychiuae Could you take a look at my issue?

cychiuae commented 4 years ago

Hi @cantv6605-seta,

Thanks for your comment. I have released v0.0.5 to support usage of db schema.

Hope it can help you.

cantv6605-seta commented 4 years ago

Thank you!