This is an exporter to convert MySQL Workbench Models (*.mwb) to Propel 1 YAML and XML Schema.
- PHP 7.2+
- Composer to install the dependencies
composer require --dev mysql-workbench-schema-exporter/propel-exporter
This will install the exporter and also require mysql-workbench-schema-exporter.
You then can invoke the CLI script using vendor/bin/mysql-workbench-schema-export
.
-
{propel:allowPkInsert}true{/propel:allowPkInsert}
(applied to Table)Allow primary key value insertion if its an auto increment column.
-
{propel:propel_behaviors}behavior{/propel:propel_behaviors}
(applied to Table)Propel behaviors definition, written in YAML format.
Example usage:
{propel:propel_behaviors} timestampable: {/propel:propel_behaviors}
-
{propel:behaviors}behavior{/propel:behaviors}
(applied to Table)Custom behaviors definition, written in YAML format.
See documentation for mysql-workbench-schema-exporter