for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @license LGPLv3, https://opensource.org/licenses/LGPL-3.0
* @copyright Aimeos (aimeos.org), 2021
*/
namespace Aimeos\Upscheme\Task;
class CustomerAddFeusers extends Base
{
public function before() : array
return ['Customer'];
}
public function up()
$this->info( 'Creating fe_users schema', 'v' );
$db = $this->db( 'db-customer' );
$filepath = __DIR__ . '/schema/customer.php';
if( ( $list = include( $filepath ) ) === false ) {
throw new \RuntimeException( sprintf( 'Unable to get schema from file "%1$s"', $filepath ) );
foreach( $list['table'] ?? [] as $name => $fcn ) {
$db->table( $name, $fcn );