2017 © Pedro Peláez
 

pimcore-bundle system-migrations-bundle

image

studioemma/system-migrations-bundle

  • Tuesday, July 10, 2018
  • by studioemma
  • Repository
  • 6 Watchers
  • 3 Stars
  • 15 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 26 Versions
  • 114 % Grown

The README.md

Pimcore System Migrations Bundle

This bundle allows to run system database migrations independent from the Pimcore 5 code updates. This is particulary usefull when you do a full update in a development environment and have to just replay the database migrations on your other environments like staging and production., (*1)

The problem

Pimcore 5 allows you to update your installation via commandline or via the admin web interface. But these updates are both code and database migrations. So in the case that you are doing your update in a development environment to prepare everything for the next update in staging and production these steps are not reproducable. The code will be updated due to a deploy on your other environment, but the database migrations will not be there, potentially causing all sorts of issues and/or unexpected behaviour., (*2)

Pimcore 5.4.0

As of pimcore 5.4.0 you will have to run the CoreBundle migrations to get this functionality., (*3)

When you are updating from a lower version than 5.4.0, first update to the latest 5.3.x and then remove this bundle when updating to 5.4.0., (*4)

Installation

``` sh $ composer require studioemma/system-migrations-bundle:"*" $ php bin/console pimcore:bundle:enable StudioEmmaSystemMigrationsBundle $ php bin/console pimcore:bundle:install StudioEmmaSystemMigrationsBundle, (*5)


This will create an extra table `plugin_se_system_migrations` where the build and updatedate are tracked. Initially after install it will contain 1 record containing the current Pimcore 5 build number and the date of installation. ## Usage ``` sh $ php bin/console studioemma:systemmigrations:update

Running this will determine based on the plugin_se_system_migrations table and the build number found in Version.php what must be done. It will upgrade the database or downgrade the database - if possible - to the schema version associated with the current version of your Pimcore 5 code., (*6)

When you install this plugin in an existing installation you can also re-initialize the plugin_se_system_migrations table - say you have installed this plugin in dev, but prod is not yet updated., (*7)

sh $ php bin/console studioemma:systemmigrations:init --buildnumber 202, (*8)

This command will reset the plugin_se_system_migrations table and insert only one record with the chosen buildnumber and the current date., (*9)

Versioning

Since the easiest and most comprehensible way of versioning was to take the major version as the pimcore build number we do not follow semver. If you want to be able to fully use this bundle you should use the latest version. It is limited to Pimcore 5. If there is a Pimcore 6 release this bundle could be updated or become obsolete., (*10)

License

GPLv3. See License file for more information, (*11)

The Versions

10/07 2018

dev-master

9999999-dev

  Sources   Download

GPL-3.0

The Requires

 

10/07 2018

270.0

270.0.0.0

  Sources   Download

GPL-3.0

The Requires

 

10/07 2018

256.0

256.0.0.0

  Sources   Download

GPL-3.0

The Requires

 

10/07 2018

253.0

253.0.0.0

  Sources   Download

GPL-3.0

The Requires

 

24/05 2018

235.1

235.1.0.0

  Sources   Download

GPL-3.0

The Requires

 

23/05 2018

235.0

235.0.0.0

  Sources   Download

GPL-3.0

The Requires

 

23/05 2018

225.0

225.0.0.0

  Sources   Download

GPL-3.0

The Requires

 

23/05 2018

219.0

219.0.0.0

  Sources   Download

GPL-3.0

The Requires

 

23/05 2018

202.0

202.0.0.0

  Sources   Download

GPL-3.0

The Requires

 

23/05 2018

195.0

195.0.0.0

  Sources   Download

GPL-3.0

The Requires

 

23/05 2018

191.0

191.0.0.0

  Sources   Download

GPL-3.0

The Requires

 

23/05 2018

186.0

186.0.0.0

  Sources   Download

GPL-3.0

The Requires

 

23/05 2018

184.0

184.0.0.0

  Sources   Download

GPL-3.0

The Requires

 

23/05 2018

183.0

183.0.0.0

  Sources   Download

GPL-3.0

The Requires

 

23/05 2018

181.0

181.0.0.0

  Sources   Download

GPL-3.0

The Requires

 

23/05 2018

168.0

168.0.0.0

  Sources   Download

GPL-3.0

The Requires

 

23/05 2018

161.0

161.0.0.0

  Sources   Download

GPL-3.0

The Requires

 

23/05 2018

159.0

159.0.0.0

  Sources   Download

GPL-3.0

The Requires

 

23/05 2018

153.0

153.0.0.0

  Sources   Download

GPL-3.0

The Requires

 

23/05 2018

152.0

152.0.0.0

  Sources   Download

GPL-3.0

The Requires

 

23/05 2018

151.0

151.0.0.0

  Sources   Download

GPL-3.0

The Requires

 

23/05 2018

144.0

144.0.0.0

  Sources   Download

GPL-3.0

The Requires

 

23/05 2018

141.0

141.0.0.0

  Sources   Download

GPL-3.0

The Requires

 

23/05 2018

90.0

90.0.0.0

  Sources   Download

GPL-3.0

The Requires

 

23/05 2018

74.0

74.0.0.0

  Sources   Download

GPL-3.0

The Requires

 

23/05 2018

48.0

48.0.0.0

  Sources   Download

GPL-3.0

The Requires