I was anticipating a 1.0 release and building with 1.0 beta. Now that 2.0 is the only option, I need figure out how migrate a lot of work or I do I have to dump it and recreate with 2.0.

Can you provide a rough idea or steps to take on how to move from Bootstrap Paragraphs 1.0 to 2.0?
What I am up against here? Thx.

Comments

kslagboom created an issue. See original summary.

thejimbirch’s picture

Since we needed to change the machine names of all of the fields and bundles to avoid conflicts with distributions, or people adding this on to existing sites, one would have to write update scripts to rewrite those machine names directly in the database. Unfortunately, that is beyond my skill set.

However, let me propose this solution to you.

You can uninstall the module and keep all of the functionality by moving a few things to your theme.

All of the fields and bundles get added into your database and configuration management. So you would just need to move the templates to the templates folder in your theme. In each of the paragraphs templates, remove the following line:

{{ attach_library('bootstrap_paragraphs/bootstrap-paragraphs') }}

Then, move the two CSS files into your theme, and call them from you theme's library file.

I haven't tried it yet, but that should work. Please take a database backup before you try this at home kids!

Also, I did release a beta2 and beta3 that fixed any open bugs before I made the 2.0 release. You can find that here:

https://www.drupal.org/project/bootstrap_paragraphs/releases/8.x-1.0-beta3

kslagboom’s picture

Thanks Jim, I will give it a go and report back on the process.

kslagboom’s picture

Can confirm this process works. I have uninstalled Bootstrap Paragraphs 8.x-1.0 B3, moved the theme files and css files into my them, made the changes as above,

Have not attempted to migrate to Bootstrap Paragraphs 8.x-2.x yet.

brandonratz’s picture

@kslagboom, Lets share progress on this and write some documentation if we come to a quality solution. Moving forward, this will be a necessity for me as I have production sites using 1.x.

thejimbirch’s picture

@brandonratz

I added the steps to my presentation

https://youtu.be/kgfvH3OstSE?t=1626

I'll probably add more documentation to the demo site, but need to decompress from DrupalCon first.

brandonratz’s picture

Hey Jim,

I figured you'd need some downtime post DC18. I'm about 30 minutes into the presentation. It helps explain some of the choices you've made, good job!

Feel free to connect with me directly and I'll assist in any way I can. Any interest in creating a #bootstrap-paragraphs channel in Drupal Slack (drupal.slack.com)?

thejimbirch’s picture

Status: Active » Closed (outdated)
duntuk’s picture

Why is this marked "(outdated)"?

Unless there is another (better) solution, this shouldn't be labeled as "outdated".

thejimbirch’s picture

Hi duntuk,

There is no upgrade path from 1.x to 2.x. Since we needed to change the machine names of all of the fields and bundles to avoid conflicts with distributions, or people adding this on to existing sites, one would have to write update scripts to rewrite those machine names directly in the database. Unfortunately, that is beyond my skill set.

You can uninstall the module and still retain all the functionality. Then you won't lose any content.

Hope that helps.

Jim