feat: add recover ai route
This commit is contained in:
16
pb_migrations/1700739396_updated_invites.js
Normal file
16
pb_migrations/1700739396_updated_invites.js
Normal file
@ -0,0 +1,16 @@
|
||||
/// <reference path="../pb_data/types.d.ts" />
|
||||
migrate((db) => {
|
||||
const dao = new Dao(db)
|
||||
const collection = dao.findCollectionByNameOrId("zfbbb4gbdk9dh6k")
|
||||
|
||||
collection.viewRule = ""
|
||||
|
||||
return dao.saveCollection(collection)
|
||||
}, (db) => {
|
||||
const dao = new Dao(db)
|
||||
const collection = dao.findCollectionByNameOrId("zfbbb4gbdk9dh6k")
|
||||
|
||||
collection.viewRule = null
|
||||
|
||||
return dao.saveCollection(collection)
|
||||
})
|
16
pb_migrations/1700739818_updated_invites.js
Normal file
16
pb_migrations/1700739818_updated_invites.js
Normal file
@ -0,0 +1,16 @@
|
||||
/// <reference path="../pb_data/types.d.ts" />
|
||||
migrate((db) => {
|
||||
const dao = new Dao(db)
|
||||
const collection = dao.findCollectionByNameOrId("zfbbb4gbdk9dh6k")
|
||||
|
||||
collection.updateRule = ""
|
||||
|
||||
return dao.saveCollection(collection)
|
||||
}, (db) => {
|
||||
const dao = new Dao(db)
|
||||
const collection = dao.findCollectionByNameOrId("zfbbb4gbdk9dh6k")
|
||||
|
||||
collection.updateRule = null
|
||||
|
||||
return dao.saveCollection(collection)
|
||||
})
|
31
pb_migrations/1700739877_updated_invites.js
Normal file
31
pb_migrations/1700739877_updated_invites.js
Normal file
@ -0,0 +1,31 @@
|
||||
/// <reference path="../pb_data/types.d.ts" />
|
||||
migrate((db) => {
|
||||
const dao = new Dao(db)
|
||||
const collection = dao.findCollectionByNameOrId("zfbbb4gbdk9dh6k")
|
||||
|
||||
// add
|
||||
collection.schema.addField(new SchemaField({
|
||||
"system": false,
|
||||
"id": "6j9gxbgv",
|
||||
"name": "skin_color",
|
||||
"type": "text",
|
||||
"required": false,
|
||||
"presentable": false,
|
||||
"unique": false,
|
||||
"options": {
|
||||
"min": null,
|
||||
"max": null,
|
||||
"pattern": ""
|
||||
}
|
||||
}))
|
||||
|
||||
return dao.saveCollection(collection)
|
||||
}, (db) => {
|
||||
const dao = new Dao(db)
|
||||
const collection = dao.findCollectionByNameOrId("zfbbb4gbdk9dh6k")
|
||||
|
||||
// remove
|
||||
collection.schema.removeField("6j9gxbgv")
|
||||
|
||||
return dao.saveCollection(collection)
|
||||
})
|
Reference in New Issue
Block a user