Example #1
0
    protected function configure()
    {
        parent::configure();
        $this->setName('metadata:status')->setDescription('Show the state of the fields_meta_data table compared to the dump file.')->setHelp(<<<EOH
EOH
);
    }
Example #2
0
    protected function configure()
    {
        parent::configure();
        $this->setName('metadata:dumptofile')->setDescription('Dump the contents of the table fields_meta_data for db migrations.')->setHelp(<<<EOH
Manage the of the dump file based on the fields_meta_data table.
EOH
);
        $descriptions = array('add' => 'Add new fields from the DB to the definition file.', 'del' => 'Delete fields not present in the DB from the metadata file.', 'update' => 'Update the metadata file for modified fields in the DB.');
        $this->setDiffOptions($descriptions);
    }
Example #3
0
    protected function configure()
    {
        parent::configure();
        $this->setName('metadata:loadfromfile')->setDescription('Load the contents of the table fields_meta_data from a file.')->setHelp(<<<EOH
This command modify the database based on a dump file.
Will not do anything by default. Use --force to actually
execute sql queries to impact the database.
EOH
)->addOption('sql', 's', InputOption::VALUE_NONE, 'Print the sql queries that would have been executed.')->addOption('force', 'f', InputOption::VALUE_NONE, 'Really execute the SQL queries to modify the database.');
        $descriptions = array('add' => 'Add new fields from the file to the DB.', 'del' => 'Delete fields not present in the metadata file from the DB.', 'update' => 'Update the DB for modified fields in metadata file.');
        $this->setDiffOptions($descriptions);
    }