spotube/server/pb_migrations/1675257148_updated_tracks.js
Kingkor Roy Tirtho ad90c11ab0 feat: configure pocketbase, generate dart types, update playback to use server instead of hive cache
This commit currently turns off sponsor block segment for compatibility reasons
2023-02-01 22:05:37 +06:00

40 lines
817 B
JavaScript

migrate((db) => {
const dao = new Dao(db)
const collection = dao.findCollectionByNameOrId("pevn93oxbnovw0s")
// update
collection.schema.addField(new SchemaField({
"system": false,
"id": "vzvqgsjf",
"name": "votes",
"type": "number",
"required": false,
"unique": false,
"options": {
"min": null,
"max": null
}
}))
return dao.saveCollection(collection)
}, (db) => {
const dao = new Dao(db)
const collection = dao.findCollectionByNameOrId("pevn93oxbnovw0s")
// update
collection.schema.addField(new SchemaField({
"system": false,
"id": "vzvqgsjf",
"name": "votes",
"type": "number",
"required": true,
"unique": false,
"options": {
"min": null,
"max": null
}
}))
return dao.saveCollection(collection)
})