var fixtures = require('node-require-directory')(__dirname);

exports.load = function(specificFixtures) {
  return exports.unload().then(function() {
    if (typeof specificFixtures === 'string') {
      specificFixtures = [specificFixtures];
    }
    var promises = [];
    Object.keys(fixtures).filter(function(key) {
      if (key === 'index') {
        return false;
      }
      if (specificFixtures && specificFixtures.indexOf(key) === -1) {
        return false;
      }
      return true;
    }).forEach(function(key) {
      var promise = fixtures[key].load().then(function(instances) {
        exports[key] = instances;
      });
      promises.push(promise);
    });
    return Promise.all(promises);
  }).catch(function(err) {
    console.error(err.stack);
  });
};

exports.unload = function() {
  return sequelize.query('SET FOREIGN_KEY_CHECKS = 0').then(function() {
    return sequelize.sync({ force: true });
  }).then(function() {
    return sequelize.query('SET FOREIGN_KEY_CHECKS = 1');
  });
};

@@ -800,24 +800,73 @@
 unction() %7B%0A
+  if (sequelize.options.dialect === 'mysql') %7B%0A  
   return seq
@@ -918,32 +918,34 @@
 en(function() %7B%0A
+  
     return seque
@@ -972,16 +972,18 @@
 rue %7D);%0A
+  
   %7D).the
@@ -993,24 +993,26 @@
 unction() %7B%0A
+  
     return s
@@ -1057,17 +1057,78 @@
  = 1');%0A
+  
   %7D);%0A
+  %7D else %7B%0A    return sequelize.sync(%7B force: true %7D);%0A  %7D%0A
 %7D;%0A

Fix running SET command in sqlite