rr19tech/PocketBaseDB / pb_migrations /1779821453_created_nature_posts.js
rr19tech's picture
download
raw
1.24 kB
/// <reference path="../pb_data/types.d.ts" />
migrate((db) => {
const collection = new Collection({
"id": "s6uvidy3aljmlsf",
"created": "2026-05-26 18:50:53.154Z",
"updated": "2026-05-26 18:50:53.154Z",
"name": "nature_posts",
"type": "base",
"system": false,
"schema": [
{
"system": false,
"id": "pvlicj2m",
"name": "short_summary",
"type": "text",
"required": true,
"presentable": true,
"unique": false,
"options": {
"min": 10,
"max": 100,
"pattern": ""
}
},
{
"system": false,
"id": "tqwcyg6h",
"name": "full_text",
"type": "editor",
"required": true,
"presentable": true,
"unique": false,
"options": {
"convertUrls": false
}
}
],
"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("s6uvidy3aljmlsf");
return dao.deleteCollection(collection);
})

Xet Storage Details

Size:
1.24 kB
·
Xet hash:
3fddc1f44bea1757bb1958540c25bad91dbcf834f21ace554059d7da40302929

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.