View more context

 

lerni

How should I migrate elemental elements from elemental 1.x to 3.x (SS 3.x vs. 4.x)?

Probable it needs some remapping but is there a migration Task to reflect that BaseElement now extends now DO instead of Widget?

  1. SilverStripe\ORM\DatabaseAdmin:
  2. classname_value_remapping:
  3. ElementalArea: DNADesign\Elemental\Models\ElementalArea
  4. BaseElement: DNADesign\Elemental\Models\BaseElement
robbieaverill

have you tried something and had problems? I would've thought that dev/build with the legacy classname remapping config would've done most of the work for you

lerni

migration runs trough but elements are all gone or not associated how they should.

lerni

I thought they are missing because of BaseElement vs. Widget

lerni

Pleas correct me if I'm wrong but AFAICT it's not possible to migrate elements with just the remaping-task. Widget & BaseElement have to be merged into BaseElement. Since there is no Widget in SS 4 I think I need to recreate the Widget-Model to get a Migration-Task running. Is this correct or am I on the wrong path?

Terry Apodaca

I just noticed something weird, I am uploading files via an upload field in the CMS, but it keeps changing the file name to home-v2.jpg but I have never uploaded a file of that name before

Terry Apodaca

it's only doing this on the staging site, not on my local development environment

lerni

@Terry Apodaca and if you check in the DB the File-Table on your staging-env?