src/RocknRoot/StrayFw/Database/Console.php
public function build(Request $request)
    {
        if (count($request->getArgs()) != 1) {
            echo 'Wrong arguments.' . PHP_EOL . 'Usage : db/build mapping_name' . PHP_EOL;
        } else {
            $mapping = $request->getArgs()[0];
            echo 'Are you sure you want to delete all existing tables and data for mapping "' . $mapping . '" ? [y/n] : ';
            if (fgetc(STDIN) == 'y') {
                $schema = Schema::getSchema($mapping);
                $schema->build();
            }
        }
    }
public function build(Request $request)
    {
        if (count($request->getArgs()) != 1) {
            echo 'Wrong arguments.' . PHP_EOL . 'Usage : db/build mapping_name' . PHP_EOL;
        } else {
            $mapping = $request->getArgs()[0];
            echo 'Are you sure you want to delete all existing tables and data for mapping "' . $mapping . '" ? [y/n] : ';
            if (fgetc(STDIN) == 'y') {
                $schema = Schema::getSchema($mapping);
                $schema->build();
            }
        }
    }
Build data structures.

@param Request $request current CLI request