| Conditions | 4 |
| Paths | 3 |
| Total Lines | 19 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 36 | public function migrate() |
||
| 37 | { |
||
| 38 | $this->msg( 'Adding indexes from "fos_user"', 0 ); $this->status( '' ); |
||
| 39 | |||
| 40 | $schema = $this->getSchema( 'db-customer' ); |
||
| 41 | |||
| 42 | foreach( $this->list as $idx => $stmt ) |
||
| 43 | { |
||
| 44 | $this->msg( sprintf( 'Checking index "%1$s"', $idx ), 0 ); |
||
| 45 | |||
| 46 | if( $schema->tableExists( 'fos_user' ) === true |
||
| 47 | && $schema->indexExists( 'fos_user', $idx ) === false ) |
||
| 48 | { |
||
| 49 | $this->execute( $stmt ); |
||
| 50 | $this->status( 'done' ); |
||
| 51 | } |
||
| 52 | else |
||
| 53 | { |
||
| 54 | $this->status( 'OK' ); |
||
| 55 | } |
||
| 59 |