add serials to machine logging
This commit is contained in:
parent
547e9c08b6
commit
beb2a2136d
2 changed files with 18 additions and 7 deletions
10
migrations/1514981004673-add_serial_to_logs.js
Normal file
10
migrations/1514981004673-add_serial_to_logs.js
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
const db = require('./db')
|
||||
|
||||
exports.up = function (next) {
|
||||
const sql = ['alter table logs add column serial integer not null default 0']
|
||||
db.multi(sql, next)
|
||||
}
|
||||
|
||||
exports.down = function (next) {
|
||||
next()
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue