#1 2017-03-10 07:46:22

fubail@qq.com
Member
Registered: 2016-10-11
Posts: 9

table AuthUser/AuthGroup does not auto-create

I use oracle database, ServerDB.HandleAuthentication is True.
I can use Admin/synopse to authenticate.
but there is no AuthUser/AuthGroup table in oracle.Why?
other tables can be auto-created. Should i create it by hand?

Offline

#2 2017-03-10 10:41:04

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,659
Website

Re: table AuthUser/AuthGroup does not auto-create

You need to call VirtualTableExternalRegisterAll() with the TSQLAuth* tables in the model at that time, or call explicitely VirtualTableExternalRegister() on those tables to be written in the external database.

Offline

#3 2017-03-13 02:46:48

fubail@qq.com
Member
Registered: 2016-10-11
Posts: 9

Re: table AuthUser/AuthGroup does not auto-create

Thanks @ab. I use TSQLRestExternalDBCreate method in mORMotDB unit,  which has a default parameter  [regDoNotRegisterUserGroupTables].
Change [regDoNotRegisterUserGroupTables] to [] solved my problem.

Offline

Board footer

Powered by FluxBB