We cannot execute the cleanup script as a subprocess with sqlite, as we now wrap the migrations in a SAVEPOINT, which blocks a second process. This moves the cleanup code into the migration file, so it can be executed in-process. Signed-off-by: David Mehren <git@herrmehren.de>
		
			
				
	
	
		
			8 lines
		
	
	
		
			155 B
		
	
	
	
		
			JavaScript
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			8 lines
		
	
	
		
			155 B
		
	
	
	
		
			JavaScript
		
	
	
		
			Executable File
		
	
	
	
	
| #!/usr/bin/env node
 | |
| 
 | |
| const cleanup = require('../lib/migrations/20200321153000-fix-account-deletion').cleanup
 | |
| 
 | |
| cleanup().then(() => {
 | |
|   process.exit(0)
 | |
| })
 |