In db.php, configuration: add another db connection (different with default) (ex: admin_db)
in auth.php configuration: change Simpleauth to 'driver' => 'Ormauth'.
in ormauth.php, set 'db_connection' => 'admin_db'
run migrate command: migrate php oil r migrate:down --packages=auth
Except:
The auth tables has been created on configured db connection (admin_db)
Actual:
The auth tables has been created on database on default connection.
Suggestion:
I see in task/migrations script, you don't chose the database connection. So, i think you should add
$connection = \Config::get('ormauth.db_connection', null);
\DBUtil::set_connection($connection);
after (line 49)
$table = \Config::get('ormauth.table_name', 'users');
Action:
Except: The auth tables has been created on configured db connection (admin_db)
Actual: The auth tables has been created on database on default connection.
Suggestion: I see in task/migrations script, you don't chose the database connection. So, i think you should add
$connection = \Config::get('ormauth.db_connection', null); \DBUtil::set_connection($connection);
after (line 49)
$table = \Config::get('ormauth.table_name', 'users');