Welcome Guest, Not a member yet? Register   Sign In
Run migration on multiple databases
#2

by adding shared instance to false, I am able to run migration for all tables

Code:
$db = \Config\Database::connect('company', false);

$migration = \Config\Services::migrations(null, $db, false);
Reply


Messages In This Thread
Run migration on multiple databases - by pc87 - 06-24-2021, 11:39 PM
RE: Run migration on multiple databases - by pc87 - 07-15-2021, 10:29 PM



Theme © iAndrew 2016 - Forum software by © MyBB