move pocketbase to dir
This commit is contained in:
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)
|
||||
})
|
||||
Reference in new issue
Block a user