feat: add last_used_machine column to customers
This commit is contained in:
parent
4b4af106a8
commit
bb303a38cf
1 changed files with 9 additions and 0 deletions
9
migrations/1721313145136-customer-last-used-machine.js
Normal file
9
migrations/1721313145136-customer-last-used-machine.js
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
const db = require('./db')
|
||||||
|
|
||||||
|
exports.up = function (next) {
|
||||||
|
db.multi(['ALTER TABLE customers ADD COLUMN last_used_machine TEXT REFERENCES devices (device_id)'], next)
|
||||||
|
}
|
||||||
|
|
||||||
|
exports.down = function (next) {
|
||||||
|
next()
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue