existing preQueries now only for MySQL databases
parent
ef336d13d8
commit
a07ae2add3
|
@ -263,7 +263,6 @@ module.exports = function(s,config){
|
||||||
var mySQLtail = ''
|
var mySQLtail = ''
|
||||||
if(config.databaseType === 'mysql'){
|
if(config.databaseType === 'mysql'){
|
||||||
mySQLtail = ' ENGINE=InnoDB DEFAULT CHARSET=utf8'
|
mySQLtail = ' ENGINE=InnoDB DEFAULT CHARSET=utf8'
|
||||||
}
|
|
||||||
//add Presets table and modernize
|
//add Presets table and modernize
|
||||||
var createPresetsTableQuery = 'CREATE TABLE IF NOT EXISTS `Presets` ( `ke` varchar(50) DEFAULT NULL, `name` text, `details` text, `type` varchar(50) DEFAULT NULL)'
|
var createPresetsTableQuery = 'CREATE TABLE IF NOT EXISTS `Presets` ( `ke` varchar(50) DEFAULT NULL, `name` text, `details` text, `type` varchar(50) DEFAULT NULL)'
|
||||||
s.sqlQuery( createPresetsTableQuery + mySQLtail + ';',[],function(err){
|
s.sqlQuery( createPresetsTableQuery + mySQLtail + ';',[],function(err){
|
||||||
|
@ -351,6 +350,7 @@ module.exports = function(s,config){
|
||||||
},true)
|
},true)
|
||||||
}
|
}
|
||||||
},true)
|
},true)
|
||||||
|
}
|
||||||
delete(s.preQueries)
|
delete(s.preQueries)
|
||||||
}
|
}
|
||||||
s.sqlQueryBetweenTimesWithPermissions = (options,callback) => {
|
s.sqlQueryBetweenTimesWithPermissions = (options,callback) => {
|
||||||
|
|
Loading…
Reference in New Issue