This topic contains 4 replies, has 3 voices, and was last updated by pinak1161 7 years, 6 months ago.
- Topic
Hi guys!
What’s the next step after oro:migration:load?
I’m following this reference: Customizing the Platform Application.
I found other forum messages saying to use:
php app/console oro:migration:load –force –show-queriesBut what is the next step to change my database? Clear Cache? Update Schema? Only this command will change my: vendor/oro/platform/src/Oro/Bundle/TrackingBundle/Entity/TrackingEvent.php ?
This is what I did:
vendor/oro/platform/src/Oro/Bundle/TrackingBundle/Migrations/Schema/v1_5/123456789101112131415161718192021222324252627282930313233343536373839404142434445<?phpnamespace Oro\Bundle\TrackingBundle\Migrations\Schema\v1_5;use Doctrine\DBAL\Schema\Schema;use Doctrine\DBAL\Types\Type;use Oro\Bundle\MigrationBundle\Migration\Migration;use Oro\Bundle\MigrationBundle\Migration\QueryBag;class OroTrackerBundle implements Migration{/*** {@inheritdoc}*/public function up(Schema $schema, QueryBag $queries){$table = $schema->getTable('oro_tracking_event');$table->getColumn('value')->setType(Type::getType(Type::TEXT))->setLength(null);$table->addColumn('brand','text',array('oro_options' => array('extend' => array('is_extend' => true, 'owner' => ExtendScope::OWNER_CUSTOM),'datagrid' => array('is_visible' => true),'merge' => array('display' => true),)));$table->addColumn('category_names','text',array('oro_options' => array('extend' => array('is_extend' => true, 'owner' => ExtendScope::OWNER_CUSTOM),'datagrid' => array('is_visible' => true),'merge' => array('display' => true),)));}}And this is the first 25 lines of my:
vendor/oro/platform/src/Oro/Bundle/TrackingBundle/Migrations/Schema/OroTrackingBundleInstaller.php123456789101112131415161718192021222324<?phpnamespace Oro\Bundle\TrackingBundle\Migrations\Schema;use Doctrine\DBAL\Schema\Schema;use Oro\Bundle\MigrationBundle\Migration\Installation;use Oro\Bundle\MigrationBundle\Migration\QueryBag;use Oro\Bundle\TrackingBundle\Migrations\Schema\v1_5\OroTrackerBundle;/*** @SuppressWarnings(PHPMD.TooManyMethods)* @SuppressWarnings(PHPMD.ExcessiveClassLength)*/class OroTrackingBundleInstaller implements Installation{/*** {@inheritdoc}*/public function getMigrationVersion(){return 'v1_5';}And this is my output of: php app/console oro:migration:load –force –show-queries
123456789101112131415161718php app/console oro:migration:load --force --show-queriesProcess migrations...> Oro\Bundle\EntityExtendBundle\Migration\RefreshExtendCacheMigrationPrepare entity configClear the extended entity cache> Oro\Bundle\EntityConfigBundle\Migration\UpdateEntityConfigMigrationUpdate configuration data for entities> Oro\Bundle\EntityExtendBundle\Migration\UpdateExtendConfigMigrationUpdate extended entities configurationPrepare entity configClear the extended entity cache> Oro\Bundle\EntityExtendBundle\Migration\UpdateExtendIndicesMigrationThank you!
Oro crm-enterprise-application 1.6.1
The forum ‘OroPlatform – Programming Questions’ is closed to new topics and replies.