fix: machine_diagnostics doesn't exist
This commit is contained in:
parent
58d32d5a2f
commit
2ea5d6e65c
2 changed files with 1 additions and 5 deletions
|
|
@ -32,7 +32,6 @@ function unpair (deviceId) {
|
|||
const q2 = t.none(`DELETE FROM machine_pings WHERE device_id=$1`, [deviceId])
|
||||
const q3 = t.none(`DELETE FROM machine_network_heartbeat WHERE device_id=$1`, [deviceId])
|
||||
const q4 = t.none(`DELETE FROM machine_network_performance WHERE device_id=$1`, [deviceId])
|
||||
const q5 = t.none(`DELETE FROM machine_diagnostics WHERE device_id=$1`, [deviceId])
|
||||
return t.batch([q1, q2, q3, q4, q5])
|
||||
})
|
||||
)
|
||||
|
|
|
|||
|
|
@ -1,10 +1,7 @@
|
|||
const db = require('./db')
|
||||
|
||||
exports.up = function (next) {
|
||||
db.multi([
|
||||
'ALTER TABLE customers DROP CONSTRAINT customers_last_used_machine_fkey;',
|
||||
'ALTER TABLE machine_diagnostics DROP CONSTRAINT machine_diagnostics_device_id_fkey;'
|
||||
], next)
|
||||
db.multi(['ALTER TABLE customers DROP CONSTRAINT customers_last_used_machine_fkey;'], next)
|
||||
}
|
||||
|
||||
exports.down = function (next) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue