wiseflow/client/pb/pb_migrations/1713321985_created_roleplays.js
2024-04-17 14:02:25 +08:00

136 lines
3.0 KiB
JavaScript

/// <reference path="../pb_data/types.d.ts" />
migrate((db) => {
const collection = new Collection({
"id": "4rpge043645sp4j",
"created": "2024-04-17 02:46:25.373Z",
"updated": "2024-04-17 02:46:25.373Z",
"name": "roleplays",
"type": "base",
"system": false,
"schema": [
{
"system": false,
"id": "ixk4pwsb",
"name": "activated",
"type": "bool",
"required": false,
"presentable": false,
"unique": false,
"options": {}
},
{
"system": false,
"id": "tmak73c7",
"name": "character",
"type": "text",
"required": false,
"presentable": false,
"unique": false,
"options": {
"min": null,
"max": null,
"pattern": ""
}
},
{
"system": false,
"id": "6iuxuwhb",
"name": "focus",
"type": "text",
"required": false,
"presentable": false,
"unique": false,
"options": {
"min": null,
"max": null,
"pattern": ""
}
},
{
"system": false,
"id": "axmc2huy",
"name": "focus_type",
"type": "text",
"required": false,
"presentable": false,
"unique": false,
"options": {
"min": null,
"max": null,
"pattern": ""
}
},
{
"system": false,
"id": "gop61pjt",
"name": "good_sample1",
"type": "text",
"required": false,
"presentable": false,
"unique": false,
"options": {
"min": null,
"max": null,
"pattern": ""
}
},
{
"system": false,
"id": "qmy5cofa",
"name": "good_sample2",
"type": "text",
"required": false,
"presentable": false,
"unique": false,
"options": {
"min": null,
"max": null,
"pattern": ""
}
},
{
"system": false,
"id": "h8gafaci",
"name": "bad_sample",
"type": "text",
"required": false,
"presentable": false,
"unique": false,
"options": {
"min": null,
"max": null,
"pattern": ""
}
},
{
"system": false,
"id": "m2ug5sfd",
"name": "report_type",
"type": "text",
"required": false,
"presentable": false,
"unique": false,
"options": {
"min": null,
"max": null,
"pattern": ""
}
}
],
"indexes": [],
"listRule": null,
"viewRule": null,
"createRule": null,
"updateRule": null,
"deleteRule": null,
"options": {}
});
return Dao(db).saveCollection(collection);
}, (db) => {
const dao = new Dao(db);
const collection = dao.findCollectionByNameOrId("4rpge043645sp4j");
return dao.deleteCollection(collection);
})