chore: use monorepo organization
This commit is contained in:
parent
deaf7d6ecc
commit
a687827f7e
1099 changed files with 8184 additions and 11535 deletions
|
|
@ -0,0 +1,18 @@
|
|||
const db = require('./db')
|
||||
|
||||
// This migration was updated on v10.2
|
||||
// it's from before 7.5 and we update one major version at a time
|
||||
// Data migration was removed, keeping only the schema update
|
||||
exports.up = function (next) {
|
||||
const sql = [
|
||||
'alter table devices add column name text',
|
||||
'alter table devices alter column name set not null'
|
||||
]
|
||||
|
||||
return db.multi(sql, next)
|
||||
}
|
||||
|
||||
exports.down = function (next) {
|
||||
const sql = ['alter table devices drop column name']
|
||||
db.multi(sql, next)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue