Conditions | 4 |
Paths | 3 |
Total Lines | 16 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
38 | public function migrate() |
||
39 | { |
||
40 | $this->msg( 'Remove left over Laravel user references', 0, '' ); |
||
41 | |||
42 | foreach( $this->sql as $table => $stmt ) |
||
43 | { |
||
44 | $this->msg( sprintf( 'Remove unused %1$s records', $table ), 1 ); |
||
45 | |||
46 | if( $this->schema->tableExists( 'users' ) && $this->schema->tableExists( $table ) ) |
||
47 | { |
||
48 | $this->execute( $stmt ); |
||
49 | $this->status( 'done' ); |
||
50 | } |
||
51 | else |
||
52 | { |
||
53 | $this->status( 'OK' ); |
||
54 | } |
||
58 |