| Conditions | 4 |
| Paths | 3 |
| Total Lines | 22 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 47 | public function migrate() |
||
| 48 | { |
||
| 49 | $this->msg( 'Adding indexes from "fos_user"', 0 ); $this->status( '' ); |
||
| 50 | |||
| 51 | $schema = $this->getSchema( 'db-customer' ); |
||
| 52 | |||
| 53 | foreach( $this->list as $idx => $stmt ) |
||
| 54 | { |
||
| 55 | $this->msg( sprintf( 'Checking index "%1$s"', $idx ), 0 ); |
||
| 56 | |||
| 57 | if( $schema->tableExists( 'fos_user' ) === true |
||
| 58 | && $schema->indexExists( 'fos_user', $idx ) === false ) |
||
| 59 | { |
||
| 60 | $this->execute( $stmt ); |
||
| 61 | $this->status( 'done' ); |
||
| 62 | } |
||
| 63 | else |
||
| 64 | { |
||
| 65 | $this->status( 'OK' ); |
||
| 66 | } |
||
| 67 | } |
||
| 68 | } |
||
| 69 | } |
||
| 70 |