public function dumpSchema()
    {
        $schema = $this->getCurrentSchema();
        $normalizer = new SchemaNormalizer();
        $desc = $normalizer->normalize($schema);
        $yamlSchema = Yaml::dump(['schema' =>$desc], 10, 2);
        $directory = dirname($this->schemaFile);
        if (!file_exists($directory)) {
            mkdir($directory, 0777, true);
        }
        file_put_contents($this->schemaFile, $yamlSchema);
    }
public function dumpSchema()
    {
        $schema = $this->getCurrentSchema();
        $normalizer = new SchemaNormalizer();
        $desc = $normalizer->normalize($schema);
        $yamlSchema = Yaml::dump(['schema' =>$desc], 10, 2);
        $directory = dirname($this->schemaFile);
        if (!file_exists($directory)) {
            mkdir($directory, 0777, true);
        }
        file_put_contents($this->schemaFile, $yamlSchema);
    }
public function dumpSchema ( ) { $ schema = $ this -> getCurrentSchema ( ) ; $ normalizer = new SchemaNormalizer ( ) ; $ desc = $ normalizer -> normalize ( $ schema ) ; $ yamlSchema = Yaml :: dump ( [ 'schema' => $ desc ] , 10 , 2 ) ; $ directory = dirname ( $ this -> schemaFile ) ; if ( ! file_exists ( $ directory ) ) { mkdir ( $ directory , 0777 , true ) ; } file_put_contents ( $ this -> schemaFile , $ yamlSchema ) ; }
Write current database schema in config file
Write current database schema in config file