API Docs for: 0.8.0
Show:

DBMigrate Class

On run, transforms a single tenant instance to a multi-tenant instance where the site defined in the single tenant instance becomes a site under global's scope.

Constructor

DBMigrate

()

Methods

applySiteToDocument

(
  • document
  • siteUid
  • callback
)

Parameters:

  • document Object
  • siteUid String
  • callback Function

createSite

(
  • cb
)

Parameters:

  • cb Function

migrateCollection

(
  • collection
  • siteUid
  • cb
)

Parameters:

  • collection String
  • siteUid String
  • cb Function

migrateContentAndPluginData

(
  • cb
)

Parameters:

  • cb Function

migrateGlobalSubCollection

(
  • collection
  • siteSpecificArr
  • compareTo
  • cb
)

Parameters:

  • collection String
  • siteSpecificArr Array
  • compareTo
  • cb Function

migrateSettings

(
  • cb
)

Parameters:

  • cb Function

migrateUsers

(
  • cb
)

Parameters:

  • cb Function

run

(
  • cb
)

Parameters:

  • cb Function

Properties

MIGRATE_ALL

Array private static

Array of collections used to append a "site" value to all documents

SITE_SPECIFIC_SETTINGS

Array private static

Site Settings that will migrate to a site level from global.

SITE_SPECIFIC_USERS

Array private static

Array of security levels that will access admin console on a site level.