You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
649 B
JavaScript
21 lines
649 B
JavaScript
/// <reference path="../pb_data/types.d.ts" />
|
|
migrate((app) => {
|
|
const collection = app.findCollectionByNameOrId("pbc_2992844423")
|
|
|
|
// update collection data
|
|
unmarshal({
|
|
"viewQuery": "select \n (ROW_NUMBER() OVER()) as id,\n upper(`Dvn1`.`patientName`) as dvn_patient\nfrom `Dvn1`\n \n"
|
|
}, collection)
|
|
|
|
return app.save(collection)
|
|
}, (app) => {
|
|
const collection = app.findCollectionByNameOrId("pbc_2992844423")
|
|
|
|
// update collection data
|
|
unmarshal({
|
|
"viewQuery": "select \n (ROW_NUMBER() OVER()) as id,\n lower(`Dvn1`.`patientName`) as dvn_patient\nfrom `Dvn1`\n \n"
|
|
}, collection)
|
|
|
|
return app.save(collection)
|
|
})
|