Skip to content
This repository has been archived by the owner on Sep 26, 2019. It is now read-only.

jmhobbs/K3-Migrate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

85 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

K3-Migrate Module

A Ko3 Module by John Hobbs

Introduction

This module provides a DSL and tools for database migrations for Kohana 3.1.x.

It is loosely inspired by Ruby's ActiveRecord::Migration

Caveats

PHP is not a nice language for DSL's, so there are some dirty hacks and it's a bit verbose. Get over it or pick a new language.

Also, be aware that it is totally possible to create SQL statements that just don't work. K3-Migrate is not that bright, it will try to do stupid things if you tell it to (especially with indexes).

Installation

  1. Drop the source in your MODPATH folder.
  2. Add the module to Kohana::modules in your bootstrap.php
  3. Create the directory APPPATH/migrations/

Examples

There are examples in the examples directory.

In K3-Migrate there is usually more than one way to do something, but there are four core statements, outlined below.

Each statement is nested inside of a Migration object's up or down methods.

Contributors

About

A Ko3 Module For Database Migrations

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages