mirror of
				https://github.com/strapi/strapi.git
				synced 2025-11-04 11:54:10 +00:00 
			
		
		
		
	fix: knex transaction error on adding the migrations in migration folder - postgres
This commit is contained in:
		
							parent
							
								
									86e57e17f4
								
							
						
					
					
						commit
						abbdc9fad0
					
				@ -7,7 +7,7 @@ const { Umzug } = require('umzug');
 | 
				
			|||||||
const createStorage = require('./storage');
 | 
					const createStorage = require('./storage');
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const wrapTransaction = db => fn => () =>
 | 
					const wrapTransaction = db => fn => () =>
 | 
				
			||||||
  db.getConnection().transaction(trx => Promise.resolve(fn(trx)));
 | 
					  db.connection.transaction(trx => Promise.resolve(fn(trx)));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// TODO: check multiple commands in one sql statement
 | 
					// TODO: check multiple commands in one sql statement
 | 
				
			||||||
const migrationResolver = ({ name, path, context }) => {
 | 
					const migrationResolver = ({ name, path, context }) => {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user