What are the Slack Archives?

It’s a history of our time together in the Slack Community! There’s a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.

Because this space is not active, you won’t be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..

Hi, I have a question regarding Migrations in Spryker. So we have used Phnix Migrations for a while

U02LXTVBMU6
U02LXTVBMU6 Posts: 1 🧑🏻‍🚀 - Cadet

Hi, I have a question regarding Migrations in Spryker. So we have used Phnix Migrations for a while but recently went back to the Spryker standard to use Propel Migrations, now my question is what is the Spryker way to create pure Data creation/insertion Migrations? For example, for the creation of a new CMS slot, which we did with a phnix migration in the past.

Comments

  • UKEP86J66
    UKEP86J66 Posts: 208 🧑🏻‍🚀 - Cadet

    The migration classes that propel generates and uses for migrations can be used to run any SQL statements, including data manipulation. You can copy-paste the last migration class but add 1 to the number to make it unique, then remove the previous SQL and replace with whatever INSERTS/UPDATES you wish