exp:flatten
Available before Exponential 6: the 4.x kernel had it already; the 4.x reference had no page for it.
Summary
Remove unused data from the database: contentobject, contentclass, workflow, role or all
Usage
./console exp:flatten [options] php bin/php/flatten.php [options]
Help
The output of ./console help exp:flatten (the script run with --help), without the standard options:
Usage: bin/php/flatten.php [OPTION]... [NAME] Exponential database flattening. Will remove data that is not considered currently in use to minimize the amount of database data it consumes Possible values for NAME is: contentobject, contentclass, workflow, role or all (for all items) flatten.php -s admin contentobject Options: --db-host=VALUE Database host --db-user=VALUE Database user --db-password=VALUE Database password --db-database=VALUE Database name --db-type=VALUE Database driver, alias for --db-driver --db-driver=VALUE Database driver --sql Display sql queries
Options
| Option | Value | Description |
|---|---|---|
| --db-host | required | Database host |
| --db-user | required | Database user |
| --db-password | required | Database password |
| --db-database | required | Database name |
| --db-type | required | Database driver, alias for --db-driver |
| --db-driver | required | Database driver |
| --sql | - | Display sql queries |
Arguments
[name]
Standard options
Every script also takes the standard options of the script framework: --help, --quiet, --siteaccess, --debug, --colors, --no-colors, --logfiles, --no-logfiles, --verbose and --allow-root-user.
Source
bin/php/flatten.php, kernel/private/classes/commands/flatten.php
See also
Generated example: exp:flatten
Added to the reference for Exponential 6.0.15.
Contributors
- Graham Brookins Updated
Comments
Add a comment