2017 © Pedro Peláez
 

library magicdiff

Generates a sql diff between two given database states.

image

vielhuber/magicdiff

Generates a sql diff between two given database states.

  • Sunday, July 16, 2017
  • by vielhuber
  • Repository
  • 2 Watchers
  • 1 Stars
  • 12 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 8 Versions
  • 0 % Grown

The README.md

☕ magicdiff ☕

magicdiff generates automagically sql diffs for a database between two given states., (*1)

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

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();

The Versions

16/07 2017

dev-master

9999999-dev

Generates a sql diff between two given database states.

  Sources   Download

MIT

The Requires

  • php >=5.6

 

16/07 2017

1.0.6

1.0.6.0

Generates a sql diff between two given database states.

  Sources   Download

MIT

The Requires

  • php >=5.6

 

14/06 2017

1.0.5

1.0.5.0

Generates a sql diff between two given database states.

  Sources   Download

MIT

The Requires

  • php >=5.6

 

14/05 2017

1.0.3

1.0.3.0

Generates a sql diff between two given database states.

  Sources   Download

MIT

The Requires

  • php >=5.6

 

14/05 2017

1.0.4

1.0.4.0

Generates a sql diff between two given database states.

  Sources   Download

MIT

The Requires

  • php >=5.6

 

09/05 2017

1.0.2

1.0.2.0

Generates a sql diff between two given database states.

  Sources   Download

MIT

The Requires

  • php >=5.6

 

08/05 2017

1.0.1

1.0.1.0

Generates a sql diff between two given database states.

  Sources   Download

MIT

The Requires

  • php >=5.6

 

08/05 2017

1.0.0

1.0.0.0

Generates a sql diff between two given database states.

  Sources   Download

MIT

The Requires

  • php >=5.6