Skip to content

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

Notifications You must be signed in to change notification settings

moakdesigns/fuel-initdb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 

Repository files navigation

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published