Conditions | 3 |
Paths | 3 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
20 | public function up() |
||
21 | { |
||
22 | $this->info( 'Creating fe_users schema', 'v' ); |
||
23 | $db = $this->db( 'db-customer' ); |
||
24 | |||
25 | $filepath = __DIR__ . '/schema/customer.php'; |
||
26 | |||
27 | if( ( $list = include( $filepath ) ) === false ) { |
||
28 | throw new \RuntimeException( sprintf( 'Unable to get schema from file "%1$s"', $filepath ) ); |
||
29 | } |
||
30 | |||
31 | foreach( $list['table'] ?? [] as $name => $fcn ) { |
||
32 | $db->table( $name, $fcn ); |
||
33 | } |
||
36 |