lint cleanup

This commit is contained in:
Josh Harvey 2014-11-20 23:06:14 -05:00
parent e12238c4fe
commit 2c756e231a
8 changed files with 20 additions and 21 deletions

View file

@ -2,7 +2,7 @@
var db = require('./db');
exports.up = function(next){
exports.up = function(next) {
var sqls = [
'CREATE TABLE IF NOT EXISTS user_config ( ' +
@ -50,6 +50,6 @@ exports.up = function(next){
db.multi(sqls, next);
};
exports.down = function(next){
exports.down = function(next) {
next();
};

View file

@ -2,7 +2,7 @@
var db = require('./db');
exports.up = function(next){
exports.up = function(next) {
db.query('CREATE TABLE bills ( ' +
'id uuid PRIMARY KEY, ' +
'device_fingerprint text NOT NULL, ' +
@ -15,6 +15,6 @@ exports.up = function(next){
'created timestamp NOT NULL DEFAULT now() )', next);
};
exports.down = function(next){
exports.down = function(next) {
next();
};

View file

@ -2,7 +2,7 @@
var db = require('./db');
exports.up = function(next){
exports.up = function(next) {
db.query('CREATE TABLE machine_events ( ' +
'id uuid PRIMARY KEY, ' +
'device_fingerprint text NOT NULL, ' +
@ -12,6 +12,6 @@ exports.up = function(next){
'created timestamp NOT NULL DEFAULT now() )', next);
};
exports.down = function(next){
exports.down = function(next) {
next();
};

View file

@ -4,7 +4,7 @@ var db = require('./db');
function singleQuotify(item) { return '\'' + item + '\''; }
exports.up = function(next){
exports.up = function(next) {
var stages = ['initial_request', 'partial_request', 'final_request',
'partial_send', 'deposit', 'dispense_request', 'dispense'].
map(singleQuotify).join(',');
@ -61,6 +61,6 @@ exports.up = function(next){
db.multi(sqls, next);
};
exports.down = function(next){
exports.down = function(next) {
next();
};