Table of Contents

Default Migrations Guide

Introduction

Migrations are separated by service type to make it easier to split the database.

One of the main reasons for this is that we have been working to allow different components of the platform (Authorization, API, and MibServer3) to each have their own database and server.

This guide will help you identify the migrations required for each MIB component.

Pre-Requisites

Migrations

All migrations are located on MibDlls\MibMigrator folder. These are the required migrations for each server/service, and should be executed in the mentioned order:

List of Migration Projects

  1. MediaiBox.Core.Database.Migrations
  2. MediaiBox.Agents.Plugins.Mailer.Database.Migrations
  3. MediaiBox.Analytics.EventCollector.Database.Migrations
  4. MediaiBox.Cms.Authorization.Database.Migrations
  5. MediaiBox.Cms.Api.Database.Migrations.
  6. [MediaiBox.Cms.Api.Database.Migrations.BasicObjects.](Assemblies/MediaiBox.Cms.Api.Database.Migrations.BasicObjects.md
  7. MediaiBox.ContentCriteria.Database.Migrations
  8. MediaiBox.Cms.FrontEnd.Database.Migrations
  9. MediaiBox.Cms.FrontEnd.DmmDashboard.Database.Migrations
  10. MediaiBox.Cms.DefaultPages.Database.Migrations

Mib Core Base

Requirements

  1. None

Migration

  1. MediaiBox.Core.Database.Migrations

Description

This is the initial migration, all mib services depend on this migration.
It has the base structure for using MibObjects, click here to find out which tables this migration has.

Usage

mibmigrator -assembly=MediaiBox.Core.Database.Migrations.dll -configPath={MIBCONFIG-FOLDER-PATH}

MibAuthorizationServer

Requirements

  1. MediaiBox.Core.Database.Migrations

Migration

  1. MediaiBox.Cms.Authorization.Database.Migrations

Description

The tables required for the mib authentication service to work will be created, such as user, group, permissions tables, etc. For more information about the tables click here.

Usage

mibmigrator -assembly=MediaiBox.Core.Database.Migrations.dll -configPath={MIBCONFIG-FOLDER-PATH}
mibmigrator -assembly=MediaiBox.Cms.Authorization.Database.Migrations.dll -configPath={MIBCONFIG-FOLDER-PATH}

MibServeApi

Requirements

  1. MediaiBox.Core.Database.Migrations

Migration

  1. MediaiBox.Cms.Api.Database.Migrations

Optional

  1. MediaiBox.Cms.Api.Database.Migrations.BasicObjects
  2. MediaiBox.ContentCriteria.Database.Migrations

Description

MibApi works based on data metadata to manage content. The tables created are responsible for storing information about the tables that will be used for content, such as the name of the table (MEDIA_TYPES), which types and columns this table has (ADM_FIELDS), relationship types (ADM_RELATEDS), etc. For more information about which tables will be generated, click here.

Usage

mibmigrator -assembly=MediaiBox.Core.Database.Migrations.dll -configPath={MIBCONFIG-FOLDER-PATH}
mibmigrator -assembly=MediaiBox.Cms.Api.Database.Migrations.dll -configPath={MIBCONFIG-FOLDER-PATH}


// Optional
mibmigrator -assembly=MediaiBox.Cms.Api.Database.Migrations.BasicObjects.dll -configPath={MIBCONFIG-FOLDER-PATH}
mibmigrator -assembly=MediaiBox.ContentCriteria.Database.Migrations.dll -configPath={MIBCONFIG-FOLDER-PATH}

MibServer3

Requirements

  1. MediaiBox.Core.Database.Migrations

Migration

  1. MediaiBox.Cms.FrontEnd.Database.Migrations

Optional

  1. MediaiBox.Cms.FrontEnd.DmmDashboard.Database.Migrations
  2. MediaiBox.Cms.DefaultPages.Database.Migrations

Description

The generated tables will store menu data, templates for creating pages, page information and respective settings, which components will be used on a page and their respective settings. Click here to see which tables will be created.

Usage

mibmigrator -assembly=MediaiBox.Core.Database.Migrations.dll -configPath={MIBCONFIG-FOLDER-PATH}
mibmigrator -assembly=MediaiBox.Cms.FrontEnd.Database.Migrations.dll -configPath={MIBCONFIG-FOLDER-PATH}


// Optional
mibmigrator -assembly=MediaiBox.Cms.FrontEnd.DmmDashboard.Database.Migrations.dll -configPath={MIBCONFIG-FOLDER-PATH}
mibmigrator -assembly=MediaiBox.Cms.DefaultPages.Database.Migrations.dll -configPath={MIBCONFIG-FOLDER-PATH}

MibAgents2Mailer

Requirements

  1. MediaiBox.Core.Database.Migrations

Migration

  1. MediaiBox.Agents.Plugins.Mailer.Database.Migrations

Description

Tables will be created for sending emails via MibAgent Mailer. Click here to see which tables will be created.

Usage

mibmigrator -assembly=MediaiBox.Core.Database.Migrations.dll -configPath={MIBCONFIG-FOLDER-PATH}
mibmigrator -assembly=MediaiBox.Agents.Plugins.Mailer.Database.Migrations.dll -configPath={MIBCONFIG-FOLDER-PATH}

Breakdown of Tables per Migration

These are the tables that are created in each migration.

MediaiBox.Core.Database.Migrations

  1. LANGUAGES
  2. LINKOBJECTS
  3. MEDIA_TYPES
  4. TRANSLATIONS_APPLICATIONS
  5. TRANSLATIONS_IMAGES
  6. TRANSLATIONS_ITEMS
  7. TRANSLATIONS_KEYS
  8. TRANSLATIONS_SECTIONS
  9. TRANSLATIONS_VALUES

MediaiBox.Agents.Plugins.Mailer.Database.Migrations

  1. ATTACHMENTS
  2. MESSAGES

MediaiBox.Cms.Authorization.Database.Migrations

  1. ADM_GROUPS
  2. ADM_LINKPERM
  3. ADM_PREFERENCES
  4. ADM_RIGHTS
  5. ADM_USERS
  6. API_CLIENT_USERS
  7. API_CLIENTS
  8. API_IPWHITELIST
  9. API_REFRESHTOKENS
  10. AUTH_DATA_TYPES
  11. AUTH_INSTANCES
  12. AUTH_PERMISSIONS
  13. AUTH_PREFERENCE_VALUES
  14. AUTH_PREFERENCES
  15. AUTH_PREFERENCES_ENDPOINTS_KEYS
  16. AUTH_RESOURCE_OWNER_TYPES
  17. AUTH_USER_GROUP

MediaiBox.ContentCriteria.Database.Migrations

  1. CONTENT_CRITERIA
  2. CONTENT_CRITERIA_FILTERS
  3. CONTENT_CRITERIA_ORDER
  4. CONTENT_CRITERIA_PREPROCESSED_DATA
  5. CONTENT_SELECTION
  6. CONTENT_SELECTION_FILTERS
  7. CONTENT_SELECTION_HIGHLIGHTS
  8. CONTENT_SELECTION_ORDER

MediaiBox.Cms.Api.Database.Migrations

  1. ADM_ENUMTYPES
  2. ADM_ENUMVALUES
  3. ADM_FIELDS
  4. ADM_FILEEXTENSIONS
  5. ADM_RELATEDS
  6. SOURCES

MediaiBox.Cms.Api.Database.Migrations.BasicObjects

  1. FLASHES
  2. FLASHES_MULTIPLEFILES
  3. IMAGES
  4. IMAGES_MULTIPLEFILES
  5. LINKS
  6. MMEDIAS
  7. MMEDIAS_MULTIPLEFILES
  8. TEXTS

MediaiBox.Cms.FrontEnd.Database.Migrations

  1. MIB3UX_COMPONENTS
  2. MIB3UX_TEMPLATES
  3. MIB3UX_TEMPLATE_COMPONENTS
  4. MIB3UX_PAGES
  5. MIB3UX_PAGE_CONFIGURATIONS
  6. MIB3UX_PAGE_COMPONENT_CONFIGURATIONS
  7. MIB3UX_MENU
  8. MIB3UX_NOTIFICATION
  9. MIB3UX_TSV_REQUESTS
  10. MIB3UX_ADVANCED_SEARCH_HISTORY
  11. MIB3UX_STORED_PAGE_STATES
  12. MIB3UX_PREFERENCES
  13. MIB3UX_PREFERENCES_VALUES
  14. MIB3UX_TSV_EDITHISTORY_REQUESTS