Comments (2)
Hi, thanks for the feedback and suggestion. Personally, I don't want this option in SchemaZen, and I will explain why. The scripts that are created by SchemaZen are designed to be executed by SchemaZen when using the create
command. This command creates a new database, and executes the scripts against that. So in this case, we know that none of the objects will already exist, and therefore it seems that to check would be a waste of time, and potentially lead to some confusion.
My understanding therefore is that you would like to execute the scripts manually on an existing database, such that this option would have some use for you. But what about the situation where an object exists but differs? Simply using an IF NOT EXISTS
instruction won't find such cases. This is where SchemaZen's compare
command comes in handy, and would, in my opinion, be more reliable/accurate for ensuring that two database schemas match.
I realize that in some cases, you may only want certain objects from one database to be copied to another, and then the technique that I just described doesn't really match the use-case. But perhaps it would be better to get the comparison functionality altered to only look at specific objects?
What do you think? Feel free to disagree with me, maybe I am missing something... ;)
from schemazen.
Thanks for the support @chris-lu. I'm glad you found schemazen useful.
I agree with @keith-hall on this. I'm going to close this issue, but if we misunderstood something or you'd like to discuss it further please reply or bring it up on gitter.
from schemazen.
Related Issues (20)
- Feature : Version Number
- Changing in permissions causing "Unable to cast object of type 'System.DBNull' to type 'System.String'." error HOT 2
- Incorrect syntax for adding index when comparing databases
- Linux Version HOT 3
- Cannot script/create database containing user assigned to role HOT 1
- Nameless FKs show up as different in the Compare HOT 1
- Unable to build Tests Project (fix included) HOT 1
- Script for CONSTRAINT in tables folder SOMETIMES generates with an SQL Syntax error!!! HOT 1
- I forked this repo and added some additional features (with breaking changes) HOT 1
- Connecting to Docker times out HOT 1
- Reverse Code First HOT 2
- Must declare the scalar variable "@roleName" HOT 1
- .NET Framework Compatibility HOT 3
- Table Import Export Integration Tests failing in bacee1a HOT 1
- Default Constraints not generated when calling Table.ScriptCreate
- Parallel Export of Data?
- SchemaZen should print that "Column position change is not supported"
- Error scripting column geometry. SQL data type geometry is not supported. HOT 1
- Precision and Scale not handled yet HOT 3
- Aggregate Functions not Scripted HOT 3
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 schemazen.