first commit

This commit is contained in:
Kevand
2026-02-04 00:21:37 +00:00
commit 58925b1ac0
18 changed files with 1086 additions and 0 deletions

View File

@@ -0,0 +1,86 @@
/// <reference path="../pb_data/types.d.ts" />
migrate((app) => {
const collection = app.findCollectionByNameOrId("_pb_users_auth_")
// remove field
collection.fields.removeById("text2335412286")
// remove field
collection.fields.removeById("text74432158")
// remove field
collection.fields.removeById("file1479911558")
// remove field
collection.fields.removeById("file157878879")
return app.save(collection)
}, (app) => {
const collection = app.findCollectionByNameOrId("_pb_users_auth_")
// add field
collection.fields.addAt(9, new Field({
"autogeneratePattern": "",
"hidden": false,
"id": "text2335412286",
"max": 0,
"min": 0,
"name": "mcUuid",
"pattern": "",
"presentable": false,
"primaryKey": false,
"required": false,
"system": false,
"type": "text"
}))
// add field
collection.fields.addAt(10, new Field({
"autogeneratePattern": "",
"hidden": false,
"id": "text74432158",
"max": 0,
"min": 0,
"name": "mcName",
"pattern": "",
"presentable": false,
"primaryKey": false,
"required": false,
"system": false,
"type": "text"
}))
// add field
collection.fields.addAt(11, new Field({
"hidden": false,
"id": "file1479911558",
"maxSelect": 1,
"maxSize": 0,
"mimeTypes": [],
"name": "mcSkin",
"presentable": false,
"protected": false,
"required": false,
"system": false,
"thumbs": [],
"type": "file"
}))
// add field
collection.fields.addAt(12, new Field({
"hidden": false,
"id": "file157878879",
"maxSelect": 1,
"maxSize": 0,
"mimeTypes": [],
"name": "mcCape",
"presentable": false,
"protected": false,
"required": false,
"system": false,
"thumbs": [],
"type": "file"
}))
return app.save(collection)
})