Documentation

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

v2.0:updates [2012/08/25 23:42]
Franz created
v2.0:updates [2012/08/27 16:24] (current)
Franz Example on single migration update
Line 22: Line 22:
  
 This would change your database structure to reflect a v1.4.9 forum. This would change your database structure to reflect a v1.4.9 forum.
 +
 +===== Running single migrations =====
 +
 +The updates for a specific versions are split into so-called "​migrations"​. The migrations for the current version (as stored in the database and in ''​bundles/​fluxbb/​core/​start.php''​) can each be run on their own - either in forward or in backward direction.
 +
 +This is useful when you are running code that is currently in development and somebody else added a single migration along with their code. As you have already run the other migrations for the current version, you only want to run that one migration:
 +
 +<​code>​
 +php artisan --env=local fluxbb::​update:​up migration_name
 +</​code>​
 +
 +Or, for reverting single migrations:
 +
 +<​code>​
 +php artisan --env=local fluxbb::​update:​down migration_name
 +</​code>​
 +
 +The migration name is the same as the file names without the extensions in the folder ''​bundles/​fluxbb/​core/​migrations/​update/​1.2.3''​ (where 1.2.3 is your current version'​s name).