|
|
|
|
|
by banashark
280 days ago
|
|
I've always hoped for something like https://github.com/fordfrog/apgdiff that was comprehensive and maintained. I want to manage my database items like I manage my code. I get a hierarchical folder structure of items with support for goToDefinition and findReferences, and when I update my code I can run something that generates the diff migration. That way I can see historical context of what has changed and when, rather than looking through migration files grepping for the fields or function names of interest. The migration log ends up being your changelog, except that it's not a simple diff (create or replace function with the whole definition of the function rather than the diff). |
|
Internally it would materialize it all into a schema which could not only be used for things like go to def, but also for diffing against another schema - either a previous build, or your live db, and subsequently emitted as a migration. It was magical, but flew under the radar, and these days any individual stuck working with SQL Server deserves many condolences.