https://github.com/marcelod/codeigniter_migration_base_generation
Create a Base Migration File from current DB
https://github.com/marcelod/codeigniter_migration_base_generation
Last synced: 8 months ago
JSON representation
Create a Base Migration File from current DB
- Host: GitHub
- URL: https://github.com/marcelod/codeigniter_migration_base_generation
- Owner: marcelod
- Fork: true (liaan/codeigniter_migration_base_generation)
- Created: 2013-07-19T14:20:57.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2013-07-19T19:36:47.000Z (almost 13 years ago)
- Last Synced: 2024-10-02T08:19:59.771Z (over 1 year ago)
- Language: PHP
- Size: 51.8 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#Create a Base Migration File from current DB
When all goes well it will create a file under migrations called 001_create_base.php under your migrations folder
#To use:
1: Enable migrations and set version to 1;
2: Enable to write migration folder;
3: Copy VpxMigration.php to your library folder (/application/library);
4: In controller:
function make_base(){
$this->load->library('VpxMigration');
// All Tables:
$this->vpxmigration->generate();
//Single Table:
$this->vpxmigration->generate('table');
}