<?php
include_once __DIR__ . '/../interfaces/IMigration.php';

class Tasks extends Cf_Controller
{
    public function __construct()
    {
        parent::__construct();

        if (CLI === false) {
            throw new Exception('You must run this in CLI mode');
        }

        $this->load->model('migration/MigrationModel');
    }

    public function migrate()
    {
        $this->MigrationModel->migrate();
    }

    public function down()
    {
        $this->MigrationModel->down();
    }
}
