Skip to content

Instantly share code, notes, and snippets.

@Wol
Forked from RyanThompson/b2tob3.md
Last active April 15, 2016 15:36
Show Gist options
  • Save Wol/a6d5624e89928ccff10aba992715ab66 to your computer and use it in GitHub Desktop.
Save Wol/a6d5624e89928ccff10aba992715ab66 to your computer and use it in GitHub Desktop.
Migrating Beta2 to Beta3
  • First install a clean copy of PyroCMS Beta3 for reference.
  • Next update the composer.json file of your B2 install with that of the B3 install.
  • Mark your B2 install as INSTALLED=false.
  • composer update to bring in all the new goodies.
  • Add placeholder, warning, instructions to streams_fields_translations table.
  • Mark all streams in streams_streams as trashable=1 according to fresh install's table.
  • Add deleted_at (DATETIME) to all stream entry tables where the stream is marked trashable above.
  • Rename the stream groups to menus in streams_streams.
  • Rename the table navigation_groups to navigation_menus.
  • Rename the column group_id to menu_id in navigation_links.
  • Rename the field slug group to menu in streams_fields table and copy config value from fresh install's table.
  • Rename the field slug page_handler to handler in streams_fields table.
  • Rename the column page_handler to handler in pages_types table.
  • For preferences.user and posts.author, change type column from anomaly.field_type.user to anomaly.field_type.relationship in streams_fields table.
  • Copy configuration column for the above rows modified according to fresh install's table values.
  • php artisan streams:compile
  • mark your .env file to use the admin theme pyrocms.theme.pyrocms

Notes: you will need to load the front end and check for plugin differences like nav_group -> menu but those will be self explanatory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment