move pocketbase to dir

This commit is contained in:
tmshv committed 2026-04-12 19:13:24 +03:00
1 parent ed3f93de53
commit 5397615322
27 files changed
+55 -2

No files matched your search

@@ -0,0 +1,26 @@
/// <reference path="../pb_data/types.d.ts" />
migrate((app) => {
const collection = app.findCollectionByNameOrId("pbc_1125843985")
// update collection data
unmarshal({
"indexes": [
"CREATE UNIQUE INDEX `idx_yj534DmAHs` ON `pages` (`slug`)"
],
"name": "pages"
}, collection)
return app.save(collection)
}, (app) => {
const collection = app.findCollectionByNameOrId("pbc_1125843985")
// update collection data
unmarshal({
"indexes": [
"CREATE UNIQUE INDEX `idx_yj534DmAHs` ON `posts` (`slug`)"
],
"name": "posts"
}, collection)
return app.save(collection)
})