Fix seed.js to use the new database DDL creation
This commit is contained in:
		
							parent
							
								
									9e22101f66
								
							
						
					
					
						commit
						2b50184485
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
					@ -8,6 +8,7 @@ const HeatSync = require("heatsync")
 | 
				
			||||||
const config = require("../config")
 | 
					const config = require("../config")
 | 
				
			||||||
const passthrough = require("../passthrough")
 | 
					const passthrough = require("../passthrough")
 | 
				
			||||||
const db = new sqlite("db/ooye.db")
 | 
					const db = new sqlite("db/ooye.db")
 | 
				
			||||||
 | 
					const migrate = require("../db/migrate")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const sync = new HeatSync({watchFS: false})
 | 
					const sync = new HeatSync({watchFS: false})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -28,7 +29,7 @@ const utils = require("../m2d/converters/utils")
 | 
				
			||||||
	assert.notEqual(reg.ooye.server_origin.slice(-1), "/") // must not end in slash
 | 
						assert.notEqual(reg.ooye.server_origin.slice(-1), "/") // must not end in slash
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// database ddl...
 | 
						// database ddl...
 | 
				
			||||||
	db.exec(fs.readFileSync("db/ooye-schema.sql", "utf8"))
 | 
						await migrate.migrate(db)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// ensure homeserver well-known is valid and returns reg.ooye.server_name...
 | 
						// ensure homeserver well-known is valid and returns reg.ooye.server_name...
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue