Skip to content

Commit

Permalink
increase max file size
Browse files Browse the repository at this point in the history
  • Loading branch information
RndUsername committed Jan 16, 2025
1 parent e144c41 commit c92f595
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions pocketbase/pb_migrations/1737037369_updated_pages.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
/// <reference path="../pb_data/types.d.ts" />
migrate((app) => {
const collection = app.findCollectionByNameOrId("pbc_3945946014")

// update field
collection.fields.addAt(1, new Field({
"hidden": false,
"id": "file2359244304",
"maxSelect": 1,
"maxSize": 1073741824000,
"mimeTypes": [],
"name": "file",
"presentable": false,
"protected": false,
"required": true,
"system": false,
"thumbs": [
"400x0"
],
"type": "file"
}))

return app.save(collection)
}, (app) => {
const collection = app.findCollectionByNameOrId("pbc_3945946014")

// update field
collection.fields.addAt(1, new Field({
"hidden": false,
"id": "file2359244304",
"maxSelect": 1,
"maxSize": 0,
"mimeTypes": [],
"name": "file",
"presentable": false,
"protected": false,
"required": true,
"system": false,
"thumbs": [
"400x0"
],
"type": "file"
}))

return app.save(collection)
})

0 comments on commit c92f595

Please sign in to comment.