euskadi31 / schema
SQL Schema 管理器
v0.1.0
2013-08-09 20:38 UTC
Requires
- php: >=5.3.3
- doctrine/dbal: ~2.3
- symfony/console: ~2.3
- symfony/finder: ~2.3
- symfony/process: ~2.3
- symfony/yaml: ~2.3
Requires (Dev)
- atoum/atoum: dev-master
This package is not auto-updated.
Last update: 2024-09-14 14:46:39 UTC
README
功能
- 仅适用于MySQL(更多功能将在下次更新中提供)。
- Schema 文件格式为json和yaml。
- 将当前数据库架构导出为json、yaml和sql格式。
架构
Json格式(schema.json)
{ "config": { "driver": "pdo_mysql", "host": "127.0.0.1", "port": "3306", "dbname": "demo", "user": "demo", "password": "demo", "charset": "utf8" }, "schemas": [] }
Yaml格式(schema.yml)
config: driver: pdo_mysql host: 127.0.0.1 port: '3306' dbname: demo user: demo password: demo charset: utf8 schemas: ~
用法
创建数据库架构。
php schema.phar create
更新数据库架构。
php schema.phar update --force
导出数据库架构。
php schema.phar dump --format=sql