Comments (5)
That setting isn't wired into the CLI. No reason not to, just no one ever did it.
from tern.
Would there be a filename convention to disable running the Migration in a transaction that would be suitable for you?
If so than I might make a PR for it.
something like:
002_create_table_foo.no_tx.sql
?
Other tools generally enable transactions with the .tx.sql
suffix instead of disabling them, but doing that would break backwards compatability.
Is this a feature you would like to have?
from tern.
The overall feature is fine, but I would probably lean toward a magic comment rather than something as part of the file name. That would allow conveniently adding more per migration behavior flags.
from tern.
It's not just the CLI, it's a bit clunky to use in code too. This struct is not exported:
Line 107 in 0c8ea39
So if I want to set DisableTx
in the MigratorOptions
passed to NewMigratorEx
, I have to reimplement the default file system migrator. Regardless of #43 it could be good to expose this struct for the future (unless MigratorFS
will always be the only option).
from tern.
This should be resolved on v2-dev
with b23e02f.
from tern.
Related Issues (20)
- Shell script migrations
- HOW use default param in template term.conf HOT 1
- Merging a branch with duplicate migration numbers HOT 9
- Archiving old migrations HOT 2
- Roll up migrations HOT 2
- Another proposal for selectively disabling transactional migrations HOT 1
- Another approach to conflicting migrations HOT 3
- Feature: Docker image HOT 4
- Running migrations in a schema HOT 2
- Wrapping migration files in transactions HOT 2
- Security vulnerability detected in current stable version HOT 2
- Configurable amount of leading 0s for migration files HOT 5
- port ignored in tern.conf HOT 8
- Add migrations path to config HOT 5
- New release with version using pgx v5? HOT 11
- Purpose of MigratorOptions.FileSystem (v2-dev) HOT 3
- Pre-built binaries HOT 1
- pre-/post-migration hooks from Go package HOT 3
- How to load .env file variables in tern.config HOT 1
- Dependency-based or git-based conflict resolution HOT 2
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 tern.