Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
22 | public function execute(CapsuleInterface $capsule): void |
||
23 | { |
||
24 | $schema = $capsule->getSchema($this->getTable()); |
||
25 | |||
26 | if (!$schema->hasColumn($this->name)) { |
||
27 | throw new ColumnException( |
||
28 | "Unable to alter column '{$schema->getName()}'.'{$this->name}', column does not exists" |
||
29 | ); |
||
30 | } |
||
31 | |||
32 | //Declaring column change |
||
33 | $this->declareColumn($schema); |
||
34 | } |
||
36 |