MySQL Workbench Schema Exporter for Propel 1

v4.0.1 2023-06-22 04:41 UTC

This package is auto-updated.

Last update: 2024-03-30 03:05:28 UTC


README

Build Status Latest Stable Version Total Downloads License

README

This is an exporter to convert MySQL Workbench Models (*.mwb) to Propel 1 YAML and XML Schema.

Prerequisites

  • PHP 7.2+
  • Composer to install the dependencies

Installation

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.

Configuration

Model Comment Behavior

  • {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.

Command Line Interface (CLI)

See documentation for mysql-workbench-schema-exporter

Links