moakdesigns / fuel-initdb

To allow you to define your data in the models and have it translated to the Database

Home Page:http://jondavidjohn.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

initdb Fuelphp Task

Description:

This task will allow you to create your database scheme from your models.

When ran, this task will:

  • Reset any existing migration information.
  • Gather the models in your models directory.
  • Drop any tables that are of the same name as any of your models. (LOOSING ALL DATA)
  • Create Migrations based on definition in models.
  • Update the Database to reflect migrations

Purpose:

To allow you to define your data in the models and have it translated to the Database

  • Many to Many relationships supported

USAGE

  1. Copy initdb.php into your fuel/app/tasks directory
  2. Construct your models following provided example models
  3. Run this command: php oil refine initdb
  4. Poof! Database Created

Author:

About

To allow you to define your data in the models and have it translated to the Database

http://jondavidjohn.com