Skip to content

Migration class for HMVC CodeIgniter - MX modules

Notifications You must be signed in to change notification settings

rahpt/CI-HMVC-Migrations

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CodeIgniter HMVC migration class

This class permit to use migrations with HMVC modules (work with wiredesignz/codeigniter-modular-extensions-hmvc)

Usage:

  • Import the MY_Migrations.php class into applications/libraries
  • Create a file $modules_path/$module_name/config/migration.php into the module. The module_config_migration_example.php file shows the correct syntax.

In code usage :

$this->load->library('migration');

// Migrates all modules
$this->migration->migrate_all_modules();

// Migrates a module to the current version
if ($this->migration->init_module($module_name)) {
	$this->migration->current();
}

// Migrates a module to a fixed version
if ($this->migration->init_module($module_name)) {
	$this->migration->version($module_version);
}

About

Migration class for HMVC CodeIgniter - MX modules

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%