Conditions | 4 |
Paths | 4 |
Total Lines | 14 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
44 | public function up() |
||
45 | { |
||
46 | $this->info( 'Remove left over TYPO3 fe_users references', 'v' ); |
||
47 | |||
48 | $db = $this->db( 'db-customer' ); |
||
49 | |||
50 | foreach( $this->sql as $table => $map ) |
||
51 | { |
||
52 | foreach( $map as $constraint => $sql ) |
||
53 | { |
||
54 | $this->info( sprintf( 'Remove records from %1$s', $table ), 'vv', 1 ); |
||
55 | |||
56 | if( !$db->hasForeign( $table, $constraint ) ) { |
||
57 | $db->exec( $sql ); |
||
58 | } |
||
63 |