first commit
This commit is contained in:
commit
4a589825c2
297 changed files with 33019 additions and 0 deletions
95
backend/pb_migrations/1773930119_updated_reviews.js
Normal file
95
backend/pb_migrations/1773930119_updated_reviews.js
Normal file
|
|
@ -0,0 +1,95 @@
|
|||
/// <reference path="../pb_data/types.d.ts" />
|
||||
migrate((app) => {
|
||||
const collection = app.findCollectionByNameOrId("pbc_4163081445")
|
||||
|
||||
// add field
|
||||
collection.fields.addAt(5, new Field({
|
||||
"autogeneratePattern": "",
|
||||
"hidden": false,
|
||||
"id": "text999008199",
|
||||
"max": 0,
|
||||
"min": 0,
|
||||
"name": "text",
|
||||
"pattern": "",
|
||||
"presentable": false,
|
||||
"primaryKey": false,
|
||||
"required": false,
|
||||
"system": false,
|
||||
"type": "text"
|
||||
}))
|
||||
|
||||
// add field
|
||||
collection.fields.addAt(6, new Field({
|
||||
"autogeneratePattern": "",
|
||||
"hidden": false,
|
||||
"id": "text3343621945",
|
||||
"max": 0,
|
||||
"min": 0,
|
||||
"name": "caseType",
|
||||
"pattern": "",
|
||||
"presentable": false,
|
||||
"primaryKey": false,
|
||||
"required": false,
|
||||
"system": false,
|
||||
"type": "text"
|
||||
}))
|
||||
|
||||
// add field
|
||||
collection.fields.addAt(7, new Field({
|
||||
"hidden": false,
|
||||
"id": "bool256245529",
|
||||
"name": "verified",
|
||||
"presentable": false,
|
||||
"required": false,
|
||||
"system": false,
|
||||
"type": "bool"
|
||||
}))
|
||||
|
||||
// add field
|
||||
collection.fields.addAt(8, new Field({
|
||||
"hidden": false,
|
||||
"id": "bool849764742",
|
||||
"name": "hasDocument",
|
||||
"presentable": false,
|
||||
"required": false,
|
||||
"system": false,
|
||||
"type": "bool"
|
||||
}))
|
||||
|
||||
// add field
|
||||
collection.fields.addAt(9, new Field({
|
||||
"hidden": false,
|
||||
"id": "file1030067157",
|
||||
"maxSelect": 1,
|
||||
"maxSize": 0,
|
||||
"mimeTypes": [],
|
||||
"name": "documentFiles",
|
||||
"presentable": false,
|
||||
"protected": false,
|
||||
"required": false,
|
||||
"system": false,
|
||||
"thumbs": [],
|
||||
"type": "file"
|
||||
}))
|
||||
|
||||
return app.save(collection)
|
||||
}, (app) => {
|
||||
const collection = app.findCollectionByNameOrId("pbc_4163081445")
|
||||
|
||||
// remove field
|
||||
collection.fields.removeById("text999008199")
|
||||
|
||||
// remove field
|
||||
collection.fields.removeById("text3343621945")
|
||||
|
||||
// remove field
|
||||
collection.fields.removeById("bool256245529")
|
||||
|
||||
// remove field
|
||||
collection.fields.removeById("bool849764742")
|
||||
|
||||
// remove field
|
||||
collection.fields.removeById("file1030067157")
|
||||
|
||||
return app.save(collection)
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue