Skip to content
This repository

This module is being deprecated in favor of Minion Migrations (see http://github.com/kohana-minion)

branch: develop

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 classes
Octocat-spinner-32 config
Octocat-spinner-32 tests
Octocat-spinner-32 vendor
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .gitmodules
Octocat-spinner-32 README.md
Octocat-spinner-32 init.php
README.md

Doctrine Migrations

Doctrine Migrations module for Kohana 3.x

Description

This module allows for managing database migrations between multiple environments easily by utilizing the Doctrine migrations library.

Requirements & Installation

You should make sure to disable this module on your production environment!

The Doctrine Migrations module is tested with Doctrine v1.2.2. You should run git submodule update --init to load Doctrine into the vendor directory of this module. Additionally, you should create a directory for your migration classes that is located in your application directory (application/migrations/).

To run from the command line, execute this command from the directory that has your index.php file: php index.php --uri=migrate. This will run all database migrations up to the current version. You can optionally include the version that you want to migrate up/down to like so: php index.php --uri=migrate/14.

You can additionally execute: php index.php --uri=migrate/current to return the current migrations version.

Additional information about how to create migration classes can be found at http://www.doctrine-project.org/documentation/manual/1_2/en/migrations#writing-migration-classes

Something went wrong with that request. Please try again.