Giter Club home page Giter Club logo

mysql_db_diff's Introduction

MYSQL_DB_Diff

经常碰到在开发环境中修改数据库结构之后要记录后手动到生产环境中全部执行一遍,相当麻烦,而且可能出现漏掉修改的情况!没有找到合适的工具,于是作此程序,对比两个数据库的表、字段及索引差异,转换为对应的SQL语句,执行到生产环境中去。

【支持的操作】

  • 表:增、删、改
  • 字段:增、删、改
  • 索引:增、删、改

【注意】

  • 程序无法判断修改表名或字段名的情况,如果继续操作,会删除原表新建一张表,原来的数据全部丢失。
  • 新指的是包含较新结构的数据库,一般为开发环境数据库,旧指的是未更新修改的数据库,一般为生产环境数据库。
  • 数据库操作有风险,请审查生成的SQL语句后执行提交,发生任何问题责任自负。

=============== 其他具体信息详见代码

非科班出身未经历过大公司正规开发,代码风格奇葩,有任何问题,欢迎邮件联系傻东(njutczd+gmail.com)

mysql_db_diff's People

Contributors

sillydong avatar

Watchers

James Cloos avatar Raujika avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.