定制 creonit/propel-schema-converter-bundle 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

creonit/propel-schema-converter-bundle

Composer 安装命令:

composer require creonit/propel-schema-converter-bundle

包简介

README 文档

README

Allows use YAML to describe schema

Installation

###1. Install the bundle with composer: composer require creonit/propel-schema-converter-bundle

###2. Registers the bundle in your app/AppKernel.php:

...
public function registerBundles()
{
    $bundles = array(
        ...
        new Creonit\PropelSchemaConverterBundle\CreonitPropelSchemaConverterBundle(),
        ...
    );
...

Usage

Create a file BundleDir/Resources/config/schema.yml and run the command to build the model or migration. File schema.xml will be created automatically.

Example schema.yml

config:
    required: true

database:
  +:
    name: default
    namespace: AppBundle\Model
    package: src.AppBundle.Model
    defaultIdMethod: native

  +behavior:
    - auto_add_pk
    
  table:
    +: {allowPkInsert: true}
    id: {type: INTEGER, size: 10, primaryKey: true, autoIncrement: true}
    column: varchar(64)
    column2: int
    column3: text key(8)
    column4: tinyint uniq
    column5: bool = 1
    column6: - datetime
    +unique:
      - column(32)
    +index: [column2]
    +behavior: 
      - timestampable
      - sortable: {use_scope: true, scope_column: column2}
    
  table2:
    id: int(10) ~pk
    table_id: int
    column: text = Default value
    column2: int
    +foreign-key:
      - table: {local: table_id, foreign: id}
    +behavior: 
      - timestampable
      - sortable: column2
    
  table3: 
    table_id: int pk > table.id
    table2_id: int pk > table2.id(restrict cascade)
    

统计信息

  • 总下载量: 9.6k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 8
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 2
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-3.0-only
  • 更新时间: 2016-07-07

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固