2017 © Pedro Peláez
 

library conv

MySQL migration query auto generate from schema

image

howyi/conv

MySQL migration query auto generate from schema

  • Monday, April 2, 2018
  • by howyi
  • Repository
  • 1 Watchers
  • 7 Stars
  • 1,988 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 5 Open issues
  • 22 Versions
  • 17 % Grown

The README.md

Build Status Coverage Status Total Downloads, (*1)

conv

Core package for howyi/conv-laravel, (*2)

Generate MySQL migration queries from actual DB and DDL, (*3)

composer require howyi/conv --dev

Query sample

tbl_user.sql, (*4)

CREATE TABLE `tbl_user` (
  `user_id` int(11) NOT NULL COMMENT 'User ID',
  `age` tinyint(3) UNSIGNED COMMENT 'User age',
  PRIMARY KEY (`user_id`),
  KEY `id_age` (`user_id`, `age`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='User management table';

Generated migration

UP, (*5)

CREATE TABLE `tbl_user` (
  `user_id` int(11) NOT NULL COMMENT 'User ID',
  `age` tinyint(3) UNSIGNED COMMENT 'User age',
  PRIMARY KEY (`user_id`),
  KEY `id_age` (`user_id`, `age`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='User management table';

DOWN, (*6)

DROP TABLE `tbl_user`;

CONTRIBUTING

install

$ composer install

check (before pull-request)

$ composer check-fix

The Versions

24/01 2018

dev-origin/add-partition-reorganize

dev-origin/add-partition-reorganize

MySQL migration query auto generate from schema

  Sources   Download

MIT

The Requires

 

The Development Requires

by Hayashi Takuya

23/01 2018

dev-add-partition-reorganize

dev-add-partition-reorganize

MySQL migration query auto generate from schema

  Sources   Download

MIT

The Requires

 

The Development Requires

by Hayashi Takuya

28/09 2017
09/08 2017
04/08 2017

v0.0.1

0.0.1.0

MySQL migration query auto generate from schema

  Sources   Download

MIT

The Requires

 

The Development Requires

by Hayashi Takuya