exp:ezconvertdbcharset
Convert all Exponential database tables to use UTF-8 character set.
Script bin/php/ezconvertdbcharset.php, code in kernel/private/classes/commands/ezconvertdbcharset.php. Run it from the installation root, as the user the web server runs as:
./console exp:ezconvertdbcharset --help
php bin/php/ezconvertdbcharset.php --helpOptions
| Option | Value | Help |
|---|---|---|
--extra-xml-attributes | required | specify custom attributes which store its data in xml. usage: <datatype_string>[.<table>.<field>][,<datatype_string>.<table>.<field>...]. default table is 'ezcontentobject_attribute', default data field is 'data_text' note: your custom table must have 'id', 'version' and 'data_type_string' fields. |
--extra-xml-data | required | specify custom xml data. usage: <table>.<field>[,<table>.<field>...]. note: your custom table must have 'id' field. |
--extra-serialized-data | required | specify custom serialized data. usage: <table>.<field>;<key_field1>[.<key_field2>....][,<table>.<field>...]. ex: mytable.data_text;id.version,mytable2.data;id |
--collation | required | specify collation for converted db. default is 'utf8_general_ci' |
--skip-class-translations | Content class translations were added in Exponential 3.9. Use this options if upgrading from early version. | |
--iconv-character-set | required | This setting is used when characters are converted by iconv(). This settings is typically needed when a character set is not called the same by the database and iconv. An example is "windows-1252" (iconv) and "iso-8859-1" (mysql 5) |
--log-filename | required | Specify a file where iconv conversions will be logged to |
Read from the option definitions in the code (startup(), getOptions(), options() or ezcConsoleOption). Every script also takes the standard options of the script framework (--help, --siteaccess, --debug, --quiet, --allow-root-user ...).
Related
Generated by ./console exp:help:examples from bin/php/ezconvertdbcharset.php, kernel/private/classes/commands/ezconvertdbcharset.php. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.