Initial commit
This commit is contained in:
26
pocketbase/pb_migrations/1742455615_updated_history.js
Normal file
26
pocketbase/pb_migrations/1742455615_updated_history.js
Normal file
@ -0,0 +1,26 @@
|
||||
/// <reference path="../pb_data/types.d.ts" />
|
||||
migrate((app) => {
|
||||
const collection = app.findCollectionByNameOrId("pbc_3068727201")
|
||||
|
||||
// add field
|
||||
collection.fields.addAt(5, new Field({
|
||||
"hidden": false,
|
||||
"id": "date2862495610",
|
||||
"max": "",
|
||||
"min": "",
|
||||
"name": "date",
|
||||
"presentable": false,
|
||||
"required": false,
|
||||
"system": false,
|
||||
"type": "date"
|
||||
}))
|
||||
|
||||
return app.save(collection)
|
||||
}, (app) => {
|
||||
const collection = app.findCollectionByNameOrId("pbc_3068727201")
|
||||
|
||||
// remove field
|
||||
collection.fields.removeById("date2862495610")
|
||||
|
||||
return app.save(collection)
|
||||
})
|
Reference in New Issue
Block a user