mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-03 21:29:28 +00:00
0f61a9e814
- Added exit status to controller controllers/system/DBSkel - Removed old code from libraries/DBSkelLib - Added steps parameter to libraries/DBSkelLib to select the step/s to perform (colon separated) - Added selectedDirectories parameter to libraries/DBSkelLib to select the directory/ies to process (colon separated) - All DBSkel structure files are in php and SQL formats - The steps order is the following: schema, sequences, tables, constraints, views, functions, grants and extras - Current running modes are: dry run, new and diff - Diff mode is still under construction
27 lines
598 B
PHP
27 lines
598 B
PHP
<?php
|
|
|
|
if (!defined('BASEPATH')) exit('No direct script access allowed');
|
|
|
|
class DBSkel extends CLI_Controller
|
|
{
|
|
/**
|
|
* Constructor
|
|
*/
|
|
public function __construct()
|
|
{
|
|
parent::__construct();
|
|
|
|
$this->load->library('DBSkelLib');
|
|
}
|
|
|
|
/**
|
|
* Starts the DBSkel procedure
|
|
*/
|
|
public function start($step = null, $selectedDirectories = null)
|
|
{
|
|
// If the DBSkel procedure fails then exit with an error
|
|
// In this way it's possible to undestand from console what is the exit status of the procedure
|
|
$this->dbskellib->start($step, $selectedDirectories) === true ? exit(0) : exit(1);
|
|
}
|
|
}
|