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-2025
*/
namespace Aimeos\Upscheme\Task;
* Creates all CMS tables.
class Cms extends Base
{
* Returns the list of task names which depends on this task.
*
* @return string[] List of task names
public function before() : array
return ['Locale'];
}
* Creates the CMS tables
public function up()
$this->info( 'Creating CMS tables', 'vv' );
$db = $this->db( 'db-cms' );
foreach( $this->paths( 'default/schema/cms.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 );