Also, you could create an alias for those tables using the longer names.

http://www.ibm.com/support/knowledgecenter/ssw_ibm_i_73/sqlp/rbafycreatingalias.htm

create alias library/auth_membership for library/auth_00001
create alias library/auth_permissions for library/auth_00002

Just curious, are you having issues with field names too?

-Jim


On Saturday, November 12, 2016 at 4:01:04 PM UTC-6, Ramos wrote:
>
> great
> thank you and next time i promise to read the docs ;)
>
> António
>
> 2016-11-12 5:23 GMT+00:00 Massimo Di Pierro <[email protected] 
> <javascript:>>:
>
>> You can use
>>
>> auth.settings.update(
>>         table_user_name='auth_user',
>>         table_group_name='auth_group',
>>         table_membership_name='auth_membership',
>>         table_permission_name='auth_permission',
>>         table_event_name='auth_event',
>>         table_cas_name='auth_cas',
>>         table_token_name='auth_token')
>>
>> before 
>>
>>     auth.define_tables()
>>
>> and pick any name you want.
>>
>>
>> On Tuesday, 8 November 2016 11:30:47 UTC-6, Ramos wrote:
>>>
>>> Hello just found that auth_membership and auth_permissions are created 
>>> as 
>>> AUTH_00001 and AUTH_00002
>>>
>>> Those who know a litle of working with AS400/db2 know that table names 
>>> are max 10 char long.
>>>
>>> So i think we have a problem...
>>>
>>> Regards
>>> António
>>>
>> -- 
>> 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 [email protected] <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to