vielhuber/magicdiff 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

vielhuber/magicdiff

Composer 安装命令:

composer require vielhuber/magicdiff

包简介

Generates a sql diff between two given database states.

README 文档

README

magicdiff generates automagically sql diffs for a database between two given states.

Key benefits

  • Spits out real sql queries that can be applied on previous state
  • Does not use sql triggers or binary / ddl logs
  • Works with any shared hosting provider
  • Data and schema changes, at the same time
  • Fast
  • Command line tool and class usage possible
  • Covered through test suite
  • Returns (separate) diffs and patch files
  • Can ignore certain tables
  • Takes care of (primary) keys and all kinds or altering tables
  • Zero dependencies

Disclaimer

This does not prevent you from taking backups. Use this script at your own risk.

Command line

Installation

wget https://raw.githubusercontent.com/vielhuber/magicdiff/master/src/magicdiff.php

Usage

php magicdiff.php setup
php magicdiff.php init
php magicdiff.php diff

Class

Installation

composer require vielhuber/magicdiff

Usage

<?php
require __DIR__ . '/vendor/autoload.php';
use vielhuber\magicdiff\magicdiff;
magicdiff::setup();
magicdiff::init();
magicdiff::diff();

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-05-08

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固