Comments (3)
I read this as effectively providing --baseline
but for the OneTime scripts only.... I can see why you might need this if restoring a db from another environment, which had tokens in a one-time script and so the db hash will never match your current files, but because you're in a downlevel environment (restored db) you have changes to run and can't use --baseline
.
I may have used this in the distant past whern I was using restores more, but the distant past is hazy...
from grate.
I have never used this one.
BTW (maybe unrelated), what's your take on this? Should we store the scripts before replacing tokens, or after?
from grate.
I completely understand why storing scripts before tokens are replaced makes sense, esp in that "restore downlevel" scenario. If I was starting a dbase migration project from scratch with no concern for back compat that's prob what I'd try.
A couple of thoughts against though:
- Back compat with existing hashes/text/dbases... could be managed with (not yet avail)
--baseline
or this issues--warnandignoreononetimescriptchanges
? - Would you apply the hash checks before or after replacement? You'd really want to check the before if you're storing the before in the dbase, and for the restore scenario (or #419) to make sense. You really want to check after replacement to detect changes in token values in the same environment where it's already run...
- Per-token values like suggested in chucknorris/roundhouse#419 feels like a hiding to nowhere right now while we're still ticking off basic stuff but it's a legit feature request...
from grate.
Related Issues (20)
- Regression in v1.4 HOT 16
- Incorrect exception message in Migration\OracleDatabase.cs: RestoreDatabase
- Typo in https://erikbra.github.io/grate/folder-configuration/
- Various updates to SqlServerSyntax are needed
- Migration from roundhouse: Table names casing HOT 9
- Test Connect Sql Server dotnet6 'SNIAddProvider' exception HOT 11
- SQL Stored Procedure [schema].[storedprocname] should create the schema HOT 3
- obsolete ntext on [grate].[ScriptsRun].[text_of_script] HOT 5
- Custom recreate database HOT 4
- Document how to get exit code in build scripts HOT 2
- Script runs but doesn't change the database HOT 2
- --transaction doesn't always work HOT 2
- .NET 7 support HOT 8
- Grate should respect user terminal background HOT 3
- Execution against Oracle returns ORA-00922: missing or invalid option HOT 12
- Should grate failed if a folder doesn't exist? HOT 8
- System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values HOT 4
- Action Dry Run prompts for 'press enter' HOT 1
- --folders ignores 2nd++ folder HOT 3
- Request: improved PostgreSQL database creation experience HOT 7
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 grate.