|
|
|
@ -4,7 +4,7 @@ const child_process=require('child_process'); |
|
|
|
|
|
|
|
|
|
// prepare database
|
|
|
|
|
console.log('Preparing database'); |
|
|
|
|
fs.unlinkSync('db.sqlite'); |
|
|
|
|
if(fs.existsSync('db.sqlite')) fs.unlinkSync('db.sqlite'); |
|
|
|
|
const db=new DB('db.sqlite'); |
|
|
|
|
db.exec(fs.readFileSync('init.sql', 'utf8')); |
|
|
|
|
|
|
|
|
|