Hello from MCP server

List Files | Just Commands | Repo | Logs

← back |
/// <reference path="../pb_data/types.d.ts" />
migrate((app) => {
  const collection = app.findCollectionByNameOrId("pbc_3707864393")

  // update collection data
  unmarshal({
    "indexes": [
      "CREATE UNIQUE INDEX `idx_kRQrbkQNxa` ON `tiers` (\n  `refId`,\n  `org`\n)",
      "CREATE UNIQUE INDEX `idx_UqJNEhfnOS` ON `tiers` (\n  `rank`,\n  `tierSet`\n)"
    ]
  }, collection)

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

  // update collection data
  unmarshal({
    "indexes": []
  }, collection)

  return app.save(collection)
})