Schema for auth table

89 views
Skip to first unread message

Deep Shah

unread,
Jun 20, 2020, 8:14:58 PM6/20/20
to web2py-users
Hi Team,

I have 2 schemas A and B. Default schema for user is A. I am using postgres. 
I have authetication table in schema B. When i run application auth.define_tables create auth table in schema A.
What should i do to make it refer auth tables in schema B rather than creating in A.

Please help me with this.
Thanks

DISCLAIMER: This email and any attachments transmitted with it may contain confidential, copyrighted, proprietary and legally privileged information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute, print, disclose or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and destroy this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late, incomplete or virus-free. The sender does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission.

António Ramos

unread,
Jun 21, 2020, 10:35:41 PM6/21/20
to web...@googlegroups.com
Why do you want or need schema B?

--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups "web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to web2py+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/3d47aad0-44a2-42bc-b5b4-f4e1725137d7n%40googlegroups.com.

villas

unread,
Jul 3, 2020, 4:39:54 PM7/3/20
to web2py-users
Did you try this...

auth = Auth(db)
auth.define_tables()

auth2 = Auth(db2)
auth2.define_tables()
Reply all
Reply to author
Forward
0 new messages