Skip to content

Commit

Permalink
Merge pull request #10 from philippkueng/master
Browse files Browse the repository at this point in the history
updated client creation process to work with newer versions of the mysql npm package
  • Loading branch information
rsandor committed Jun 10, 2012
2 parents efda595 + 48b9666 commit 044a290
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions migrate.js
Expand Up @@ -807,10 +807,7 @@ function main() {
var Connect = { var Connect = {
mysql: function() { mysql: function() {
// Create the client // Create the client
client = new require('mysql').Client(config.mysql); client = new require('mysql').createClient(config.mysql);

// Attempt to connect to the db
client.connect();


client.query("show tables;", function(err, result, fields) { client.query("show tables;", function(err, result, fields) {
if (err) if (err)
Expand Down

0 comments on commit 044a290

Please sign in to comment.