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), 2024
*/
namespace Aimeos\Upscheme\Task;
class Basket extends Base
{
public function before() : array
return ['Locale'];
}
public function up()
$this->info( 'Creating basket schema', 'vv' );
$db = $this->db( 'db-basket' );
foreach( $this->paths( 'default/schema/basket.php' ) as $filepath )
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 );
$db->up();