|
@@ 71-76 (lines=6) @@
|
| 68 |
|
$this->driver->skip('ForeignKey'); |
| 69 |
|
} |
| 70 |
|
|
| 71 |
|
if (isset($options['only-foreign-keys'])) { |
| 72 |
|
$this->io->output("Applying only foreign keys ...\n"); |
| 73 |
|
$this->lastSession = $this->driver->getLastSession(); |
| 74 |
|
$this->driver->allowOnly('ForeignKey'); |
| 75 |
|
$filter = self::FILTER_LAST_SESSION; |
| 76 |
|
} |
| 77 |
|
|
| 78 |
|
if (isset($options['force-foreign-keys'])) { |
| 79 |
|
$this->io->output("Applying only foreign keys and skipping on errors ...\n"); |
|
@@ 78-84 (lines=7) @@
|
| 75 |
|
$filter = self::FILTER_LAST_SESSION; |
| 76 |
|
} |
| 77 |
|
|
| 78 |
|
if (isset($options['force-foreign-keys'])) { |
| 79 |
|
$this->io->output("Applying only foreign keys and skipping on errors ...\n"); |
| 80 |
|
$this->lastSession = $this->driver->getLastSession(); |
| 81 |
|
$this->driver->setSkipOnErrors($options['force-foreign-keys']); |
| 82 |
|
$this->driver->allowOnly('ForeignKey'); |
| 83 |
|
$filter = self::FILTER_LAST_SESSION; |
| 84 |
|
} |
| 85 |
|
|
| 86 |
|
if (isset($options['default-ondelete-action'])) { |
| 87 |
|
ForeignKey::$defaultOnDelete = $options['default-ondelete-action']; |