v12.0.0 - initial commit

This commit is contained in:
padreug 2025-12-31 19:04:13 +01:00
commit e2c49ea43c
1145 changed files with 97211 additions and 0 deletions

View file

@ -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.runAll(sql, next)
}
exports.down = function (next) {
const sql = ['alter table devices drop column name']
db.runAll(sql, next)
}