/**
  * {@inheritdoc}
  */
 public function up(Schema $schema, QueryBag $queries)
 {
     OroEmailBundle::oroEmailTable($schema, true, false);
     OroEmailBundle::oroEmailAddressTable($schema);
     OroEmailBundle::oroEmailAttachmentTable($schema);
     OroEmailBundle::oroEmailAttachmentContentTable($schema);
     OroEmailBundle::oroEmailBodyTable($schema);
     OroEmailBundle::oroEmailFolderTable($schema);
     OroEmailBundle::oroEmailOriginTable($schema);
     OroEmailBundle::oroEmailRecipientTable($schema);
     OroEmailBundle11::oroEmailToFolderRelationTable($schema);
     OroEmailBundle::oroEmailTemplateTable($schema);
     OroEmailBundle::oroEmailTemplateTranslationTable($schema);
     OroEmailBundle::oroEmailForeignKeys($schema, false);
     OroEmailBundle::oroEmailAttachmentForeignKeys($schema);
     OroEmailBundle::oroEmailAttachmentContentForeignKeys($schema);
     OroEmailBundle::oroEmailBodyForeignKeys($schema);
     OroEmailBundle::oroEmailFolderForeignKeys($schema);
     OroEmailBundle::oroEmailRecipientForeignKeys($schema);
     OroEmailBundle::oroEmailTemplateTranslationForeignKeys($schema);
     OroEmailBundle13::addOrganization($schema);
     OroEmailBundle14::addColumns($schema);
     OroEmailBundle17::addTable($schema);
     OroEmailBundle17::addColumns($schema);
     OroEmailBundle17::addForeignKeys($schema);
     OroEmailBundle18::addAttachmentRelation($schema);
     OroEmailBundle19::changeAttachmentRelation($schema);
     OroEmailBundle112_1::changeEmailToEmailBodyRelation($schema);
     OroEmailBundle112_1::splitEmailEntity($schema);
     OroEmailBundle112_2::removeOldSchema($schema);
     OroEmailBundle113::addColumnMultiMessageId($schema);
     OroEmailBundle114::addEmbeddedContentIdField($schema);
 }
 /**
  * {@inheritdoc}
  */
 public function up(Schema $schema, QueryBag $queries)
 {
     OroEmailBundle::oroEmailTable($schema, true, false);
     OroEmailBundle::oroEmailAddressTable($schema);
     OroEmailBundle::oroEmailAttachmentTable($schema);
     OroEmailBundle::oroEmailAttachmentContentTable($schema);
     OroEmailBundle::oroEmailBodyTable($schema);
     OroEmailBundle::oroEmailFolderTable($schema);
     OroEmailBundle::oroEmailOriginTable($schema);
     OroEmailBundle::oroEmailRecipientTable($schema);
     OroEmailBundle11::oroEmailToFolderRelationTable($schema);
     OroEmailBundle::oroEmailTemplateTable($schema);
     OroEmailBundle::oroEmailTemplateTranslationTable($schema);
     OroEmailBundle::oroEmailForeignKeys($schema, false);
     OroEmailBundle::oroEmailAttachmentForeignKeys($schema);
     OroEmailBundle::oroEmailAttachmentContentForeignKeys($schema);
     OroEmailBundle::oroEmailBodyForeignKeys($schema);
     OroEmailBundle::oroEmailFolderForeignKeys($schema);
     OroEmailBundle::oroEmailRecipientForeignKeys($schema);
     OroEmailBundle::oroEmailTemplateTranslationForeignKeys($schema);
     OroEmailBundle13::addOrganization($schema);
     OroEmailBundle14::addColumns($schema);
     OroEmailBundle17::addTable($schema);
     OroEmailBundle17::addColumns($schema);
     OroEmailBundle17::addForeignKeys($schema);
     OroEmailBundle18::addAttachmentRelation($schema);
     OroEmailBundle19::changeAttachmentRelation($schema);
     OroEmailBundle112_1::changeEmailToEmailBodyRelation($schema);
     OroEmailBundle112_1::splitEmailEntity($schema);
     OroEmailBundle112_2::removeOldSchema($schema);
     OroEmailBundle112_3::updateEmailUser($schema);
     OroEmailBundle113::addColumnMultiMessageId($schema);
     OroEmailBundle114::addEmbeddedContentIdField($schema);
     OroEmailBundle115::addEmailFolderFields($schema);
     OroEmailBundle115::addEmailOriginFields($schema);
     OroEmailBundle115::updateEmailRecipientConstraint($schema);
     OroEmailBundle116_1::createOroEmailMailboxProcessSettingsTable($schema);
     OroEmailBundle116_1::createOroEmailMailboxTable($schema);
     OroEmailBundle116_1::addOwnerMailboxColumn($schema);
     OroEmailBundle116_1::addOroEmailMailboxForeignKeys($schema);
     OroEmailBundle116_1::addEmailUserMailboxOwnerColumn($schema);
     OroEmailBundle116_2::oroEmailAutoResponseRuleTable($schema);
     OroEmailBundle116_2::oroEmailAutoResponseRuleConditionTable($schema);
     OroEmailBundle116_2::oroEmailTemplateTable($schema);
     OroEmailBundle116_2::oroEmailTable($schema);
     OroEmailBundle119::oroEmailUserTable($schema);
     OroEmailBundle120::oroEmailTable($schema);
 }
 /**
  * {@inheritdoc}
  */
 public function up(Schema $schema, QueryBag $queries)
 {
     OroEmailBundle::oroEmailTable($schema, true, false);
     OroEmailBundle::oroEmailAddressTable($schema);
     OroEmailBundle::oroEmailAttachmentTable($schema);
     OroEmailBundle::oroEmailAttachmentContentTable($schema);
     OroEmailBundle::oroEmailBodyTable($schema);
     OroEmailBundle::oroEmailFolderTable($schema);
     OroEmailBundle::oroEmailOriginTable($schema);
     OroEmailBundle::oroEmailRecipientTable($schema);
     OroEmailBundle11::oroEmailToFolderRelationTable($schema);
     OroEmailBundle::oroEmailTemplateTable($schema);
     OroEmailBundle::oroEmailTemplateTranslationTable($schema);
     OroEmailBundle::oroEmailForeignKeys($schema, false);
     OroEmailBundle::oroEmailAttachmentForeignKeys($schema);
     OroEmailBundle::oroEmailAttachmentContentForeignKeys($schema);
     OroEmailBundle::oroEmailBodyForeignKeys($schema);
     OroEmailBundle::oroEmailFolderForeignKeys($schema);
     OroEmailBundle::oroEmailRecipientForeignKeys($schema);
     OroEmailBundle::oroEmailTemplateTranslationForeignKeys($schema);
     OroEmailBundle13::addOrganization($schema);
 }