initial commit, database config working, pug template basic config, generated site working
This commit is contained in:
11
database/drop-database.js
Normal file
11
database/drop-database.js
Normal file
@ -0,0 +1,11 @@
|
||||
var con = require('./db');
|
||||
|
||||
con.connect(function(err) {
|
||||
if (err) throw err;
|
||||
console.log("Connected!");
|
||||
con.query("DROP DATABASE unesco", function (err, result) {
|
||||
if (err) throw err;
|
||||
console.log('"unesco" Database dropped');
|
||||
process.exit();
|
||||
});
|
||||
});
|
Reference in New Issue
Block a user