NM
drush dl
?Size: a a a
NM
drush dl
?NM
NM
NM
NM
NM
NM
I<
I<
NM
I<
/**
* Limit sql-sync operations to remote sites.
*
* @hook validate sql:sync
*
* @throws \Exception
*/
public function sqlSyncValidate(CommandData $commandData) {
$commandData->output()->writeln('<comment>Warning: sql-sync is a dangerous operation!</comment>');
$target = $commandData->input()->getArgument('target');
if ($target != '@local') {
throw new \Exception('You should never overwrite the remote database.');
}
}
I<
NM
NM