Comments (1)
Dear @ivanDespot
Thanks for using my tool.
The answer is no.
When I started developing pg-diff I was coming from years using other tools, and all of them implemented classical migration strategy based on Up() and Down() functions.
I don't agree totally with rollback strategy bacause essentially it cannot work in every case and is very dangerous.
From my experience, I never needed to deploy a sql patch that wasn't well tested; this works for me because I know what I did in develop machine and tested again in develop machine before commit my changes.
That's why I choose to not include a rollback strategy, but hey! You can still make a new following patch to revert back changes.
Let me try to explain a possible way to work.
Image that you develop a software based on pgsql.
You should have two databases, one to make changes and very important never connected with software; another one to compare with the above db, make patch, try to apply that patch and connected with your software.
As soon as possible you start debugging or whatelse in order to check your changes.
If changes are OK than you can commit sql patches on source code repository and then share it with your team in case, else delete created patch from your workspace.
In case you use this tool just for databases as diff tool, then you should not apply patch if unsure, but in any case try an approach "fast-forward" always, that in other terms means you should create a new patch to revert back changes.
Make it sense for you?
from pg-diff.
Related Issues (20)
- error: type "regrole" does not exist HOT 2
- It does not appear that the tool retrieve stored proc differences nor new or dropped one HOT 2
- Errors are printed to stdout instead of stderr HOT 3
- Feature request: some options and defaults for file handling HOT 6
- Feature request: Remove the need for the 'namespaces' field in the config HOT 3
- Redshift compatibility HOT 1
- Feature Request: Compare comments HOT 6
- Column Does not Exist HOT 8
- Data Compare - Arrays HOT 5
- Options to remove IF EXISTS (and similar) statements from generated scripts HOT 5
- Schema not specified for `COMMENT ON INDEX` statements, leading to RELATION ... DOES NOT EXIST HOT 3
- Data compare doesn't detect updates of NULL values HOT 2
- Triggers not implemented? HOT 3
- Please provide sample diff output in documentation
- How to generate separate scripts for Functions only and Tables Only
- Disabling comments
- create type not implemented?
- migration option historyTableSchema
- SSL options
- Feature Request: Support for Incremental Materialized Views
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pg-diff.