PHPackages                             asgard/migration - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. asgard/migration

ActiveLibrary

asgard/migration
================

v0.3.1(10y ago)17321MITPHPPHP &gt;=5.5.9

Since Sep 9Pushed 8y ago1 watchersCompare

[ Source](https://github.com/asgardphp/migration)[ Packagist](https://packagist.org/packages/asgard/migration)[ RSS](/packages/asgard-migration/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (5)Versions (5)Used By (1)

\#Migration

[![Build Status](https://camo.githubusercontent.com/37fb2982864048a5b782ad234e3a58c56198c73ed1d9daae6fe56142d30fd290/68747470733a2f2f7472617669732d63692e6f72672f6173676172647068702f6d6967726174696f6e2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/asgardphp/migration)

The migration packages lets you manage and execute your migrations.

- [Installation](#installation)
- [Overview](#overview)
- [MigrationManager](#migrationmanager)
- [Tracker](#tracker)
- [Commands](#commands)

\##Installation **If you are working on an Asgard project you don't need to install this library as it is already part of the standard libraries.**

```
composer require asgard/migration 0.*

```

\##Overview

All migrations must extend \\Asgard\\Migration\\Migration or \\Asgard\\Migration\\DBMigration (which extends \\Asgard\\Migration\\Migration).

\\Asgard\\Migration\\DBMigration can be useful for database migrations as it will automatically begin a transaction before the migration is executed and commit it only if the migration was successful.

Migrations must implements the up() or/and down() method.

For example:

```
