How can I change the name of migration database in database array? For a Drupal migration from d7 to d8, I have to define my source database to be called 'migrate' in the settings.php as below. My question is: how can I define the source as something other than 'migrate',  where is that set up?
`$databases['default']['default'] = array(
  'database' =&gt; &quot;db&quot;,
  'username' =&gt; &quot;db&quot;,
  'password' =&gt; &quot;db&quot;,
  'host' =&gt; $host,
  'driver' =&gt; &quot;mysql&quot;,
  'port' =&gt; $port,
  'prefix' =&gt; &quot;&quot;,
);


$databases['migrate']['default'] = array(
  'database' =&gt; &quot;drupal7&quot;,
  'username' =&gt; &quot;db&quot;,
  'password' =&gt; &quot;db&quot;,
  'host' =&gt; $host,
  'driver' =&gt; &quot;mysql&quot;,
  'port' =&gt; $port,
  'prefix' =&gt; &quot;&quot;,
);`
migrate is the default key used by the SqlBase class which is the base for the D7 source plugins. Its documentation explains in detail how it determines what key to use and how it can be changed. Of relevance:

As described above, the default source database is $databases['migrate']. If the source plugin needs another source connection, the database connection parameters should be added to the $databases array as, for instance, $databases['foo']. The source plugin can then use this connection by setting 'key' to 'foo' in its configuration.

So update the source.key value in your migration configuration to foo then re-import that configuration to change the default key used for that migration source.