2017 © Pedro Peláez
 

library schema

SQL Schema manager

image

euskadi31/schema

SQL Schema manager

  • Tuesday, May 3, 2016
  • by euskadi31
  • Repository
  • 1 Watchers
  • 1 Stars
  • 241 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 2 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

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), (*1)

{
    "config": {
        "driver": "pdo_mysql",
        "host": "127.0.0.1",
        "port": "3306",
        "dbname": "demo",
        "user": "demo",
        "password": "demo",
        "charset": "utf8"
    },
    "schemas": []
}

Yaml format (schema.yml), (*2)

config:
    driver: pdo_mysql
    host: 127.0.0.1
    port: '3306'
    dbname: demo
    user: demo
    password: demo
    charset: utf8
schemas: ~

Usage

Create database schema., (*3)

php schema.phar create

Update database schema., (*4)

php schema.phar update --force

Dump database schema., (*5)

php schema.phar dump --format=sql

The Versions

03/05 2016

dev-master

9999999-dev

SQL Schema manager

  Sources   Download

MIT

The Requires

 

The Development Requires

sql schema manager

09/08 2013

v0.1.0

0.1.0.0

SQL Schema manager

  Sources   Download

MIT

The Requires

 

The Development Requires

sql schema manager