Skip to content

Commit

Permalink
added MigrateImagesCommand for migrtating entity images to the new st…
Browse files Browse the repository at this point in the history
…ructure

- the command is run automatically during the application deploy
- it is run only once (the information about the migration is stored in setting_values in the database)
  • Loading branch information
vitek-rostislav committed Nov 24, 2023
1 parent e71e938 commit de1dc8b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/src/DataFixtures/Demo/SettingValueDataFixture.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
use Shopsys\FrameworkBundle\Component\DataFixture\AbstractReferenceFixture;
use Shopsys\FrameworkBundle\Component\Domain\Domain;
use Shopsys\FrameworkBundle\Component\Money\Money;
use Shopsys\FrameworkBundle\Component\Setting\Setting as BaseSetting;
use Shopsys\FrameworkBundle\Component\Translation\Translator;
use Shopsys\FrameworkBundle\Model\Mail\Setting\MailSetting;
use Shopsys\FrameworkBundle\Model\Pricing\PricingSetting;
Expand Down Expand Up @@ -138,6 +139,7 @@ public function load(ObjectManager $manager)

$this->setDomainDefaultCurrency($domainId);
}
$this->setting->set(BaseSetting::IMAGE_STRUCTURE_MIGRATED_FOR_PROXY, true);
}

/**
Expand Down

0 comments on commit de1dc8b

Please sign in to comment.