Comments (2)
Migrations are executed in a transaction automatically. No need for manual begin/commit.
On 27 Sep 2014, at 21:00, Raphael Randschau [email protected] wrote:
Hey,
I'm currently migrating my migrations from theory/sqitch to sql-migrate, mostly because I want to ship the migrations /w my binary together.
I ran into problems because all my migrations look like this:
BEGIN;
SET client_min_messages = 'warning';
CREATE TYPE xxx AS ENUM ('a','b');
CREATE TABLE public.xxx ();COMMIT;
Migration failed: pq: unexpected transaction status idle
Is this any issue with sql-migrate or the postgresql library in use? If you could point me into the right direction I could start working on a pull request so migrations are properly supported.thanks!
β
Reply to this email directly or view it on GitHub.
from sql-migrate.
thanks for the quick answer!
from sql-migrate.
Related Issues (20)
- Request: Update go-sqlite3 dependency to latest (1.14.14) HOT 3
- Migration not applied
- IgnoreUnknown is not working
- SetTable fails race detector HOT 3
- Support for multiple migration dirs
- Where may I ask questions? HOT 2
- gorp retracted by module author warning HOT 2
- Support for exclusive connection while executing migration HOT 3
- ToApply doesn't consider IgnoreUnknown flags when apply migrations up dir HOT 1
- Multiple `migrate Up` blocks in a single file? HOT 1
- Migrate transactions for multiple shards HOT 5
- [Proposal] Addition of 'reset' to sql-migrate command HOT 3
- Go install fails on Go 1.19 HOT 5
- schema field in dbconfig.yml being ignored
- Doing a migrate down when there is a migration βholeβ is corrupting the database
- MemoryMigrationSource execution order is wrong HOT 2
- [BUG] Missing integrity checks on migrations lead to corrupt DB schema state HOT 3
- Logic Bug with ExecVersion HOT 1
- Possible release to fix build issue on Alpine Linux HOT 1
- Migration failed: pq: unterminated dollar-quoted string at or near HOT 1
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 sql-migrate.