Skip to content
This repository has been archived by the owner on Oct 2, 2022. It is now read-only.

Enhancement: Compare DB with Filesystem for differences #67

Open
colinmo opened this issue Apr 22, 2014 · 2 comments
Open

Enhancement: Compare DB with Filesystem for differences #67

colinmo opened this issue Apr 22, 2014 · 2 comments

Comments

@colinmo
Copy link

colinmo commented Apr 22, 2014

When the system loads, it should compare the filesystem schema to the database schema so that objects that differ can be highlighted.

@victorstanciu
Copy link
Owner

This sounds good, but it's not as simple as checking to see if there is any difference between two SQL commands. Different tools create different CREATE TABLE statements when exporting, so simply comparing the resulting SQL is not enough. The two CREATE TABLE commands have to actually be parsed and interpreted column by column, index by index, etc. I will look into existing tools to see what would be the best way of doing this.

@colinmo
Copy link
Author

colinmo commented Jun 25, 2014

There are a few good tools like ADODB, Doctrine etc. that abstract database creates etc. into a common format regardless of DB language. http://adodb.sourceforge.net/tips_portable_sql.htm look up DDL or http://docs.doctrine-project.org/en/2.0.x/reference/tools.html look up Reverse Engineering.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants