fix migrations
This commit is contained in:
parent
4689dfcbeb
commit
f67c7ccce3
2 changed files with 2 additions and 2 deletions
|
|
@ -3,7 +3,7 @@
|
||||||
var db = require('./db');
|
var db = require('./db');
|
||||||
|
|
||||||
exports.up = function(next) {
|
exports.up = function(next) {
|
||||||
db.query('CREATE TABLE bills ( ' +
|
db.query('CREATE TABLE IF NOT EXISTS bills ( ' +
|
||||||
'id uuid PRIMARY KEY, ' +
|
'id uuid PRIMARY KEY, ' +
|
||||||
'device_fingerprint text NOT NULL, ' +
|
'device_fingerprint text NOT NULL, ' +
|
||||||
'denomination integer NOT NULL, ' +
|
'denomination integer NOT NULL, ' +
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
var db = require('./db');
|
var db = require('./db');
|
||||||
|
|
||||||
exports.up = function(next) {
|
exports.up = function(next) {
|
||||||
db.query('CREATE TABLE machine_events ( ' +
|
db.query('CREATE TABLE IF NOT EXISTS machine_events ( ' +
|
||||||
'id uuid PRIMARY KEY, ' +
|
'id uuid PRIMARY KEY, ' +
|
||||||
'device_fingerprint text NOT NULL, ' +
|
'device_fingerprint text NOT NULL, ' +
|
||||||
'event_type text NOT NULL, ' +
|
'event_type text NOT NULL, ' +
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue