{"size": 931, "ext": "js", "max_stars_repo_path": "migrations/20170604133310-create-tables.js", "max_stars_repo_name": "gpimblott/beershots", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "migrations/20170604133310-create-tables.js", "max_issues_repo_name": "gpimblott/beershots", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "migrations/20170604133310-create-tables.js", "max_forks_repo_name": "gpimblott/beershots", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 28.2121212121, "max_line_length": 88, "alphanum_fraction": 0.5982814178}
'use strict';

var dbm = global.dbm || require('db-migrate');
var type = dbm.dataType;
var fs = require('fs');
var path = require('path');


exports.setup = function(options, seedLink) {
};

exports.up = function(db , callback) {
    var filePath = path.join(__dirname + '/sqls/20170604133310-create-tables-up.sql');
    fs.readFile(filePath, {encoding: 'utf-8'}, function(err,data){
        if (err) return console.log(err);
        db.runSql(data, function(err) {
            if (err) return console.log(err);
            callback();
        });
    });
};

exports.down = function(db, callback) {
    var filePath = path.join(__dirname + '/sqls/20170604133310-create-tables-down.sql');
    fs.readFile(filePath, {encoding: 'utf-8'}, function(err,data){
        if (err) return console.log(err);
        db.runSql(data, function(err) {
            if (err) return console.log(err);
            callback();
        });
    });
};
