https://github.com/euskadi31/schema
SQL Schema Manager
https://github.com/euskadi31/schema
Last synced: 2 months ago
JSON representation
SQL Schema Manager
- Host: GitHub
- URL: https://github.com/euskadi31/schema
- Owner: euskadi31
- License: mit
- Created: 2013-08-09T20:35:38.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2017-07-13T10:18:05.000Z (almost 8 years ago)
- Last Synced: 2025-02-10T10:53:12.521Z (4 months ago)
- Language: PHP
- Size: 24.4 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
SQL Schema Manager
==================Feature
-------* MySQL only (more next time).
* Schema file format json and yaml.
* Dump current database schema to json, yaml and sql format.Schema
------Json format (schema.json)
~~~json
{
"config": {
"driver": "pdo_mysql",
"host": "127.0.0.1",
"port": "3306",
"dbname": "demo",
"user": "demo",
"password": "demo",
"charset": "utf8"
},
"schemas": []
}
~~~Yaml format (schema.yml)
~~~yaml
config:
driver: pdo_mysql
host: 127.0.0.1
port: '3306'
dbname: demo
user: demo
password: demo
charset: utf8
schemas: ~
~~~Usage
-----Create database schema.
~~~shell
php schema.phar create
~~~Update database schema.
~~~shell
php schema.phar update --force
~~~Dump database schema.
~~~shell
php schema.phar dump --format=sql
~~~