16 lines
		
	
	
		
			414 B
		
	
	
	
		
			JavaScript
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			414 B
		
	
	
	
		
			JavaScript
		
	
	
		
			Executable File
		
	
	
	
	
#!/usr/bin/env node
 | 
						|
// @ts-check
 | 
						|
 | 
						|
// Trigger the database migration flow and exit after committing.
 | 
						|
// You can use this to run migrations locally and check the result using sqlitebrowser.
 | 
						|
 | 
						|
const sqlite = require("better-sqlite3")
 | 
						|
 | 
						|
const passthrough = require("../src/passthrough")
 | 
						|
const db = new sqlite("ooye.db")
 | 
						|
const migrate = require("../src/db/migrate")
 | 
						|
 | 
						|
Object.assign(passthrough, {db})
 | 
						|
 | 
						|
migrate.migrate(db)
 |