<?php

namespace EE\Migration;

abstract class Base {

    public $status = 'incomplete';

    abstract public function up();
    abstract public function down();
}
<?php

namespace EE\Migration;

use Symfony\Component\Filesystem\Filesystem;

abstract class Base {

	public $status = 'incomplete';
	protected $is_first_execution;
	protected $skip_this_migration;
	protected $backup_dir;
	protected $backup_file;
	protected $fs;

	public function __construct() {
		$this->fs                  = new Filesystem();
		$this->skip_this_migration = false;
		$this->is_first_execution  = ! \EE\Model\Option::get( 'version' );
		$this->backup_dir          = EE_ROOT_DIR . '/.backup';
		$this->fs->mkdir( $this->backup_dir );
	}

	abstract public function up();

	abstract public function down();
}

Add frequently required checks and variables
Add frequently required checks and variables

Signed-off-by: Riddhesh Sanghvi <f8c90b0b72a59c76b108f89842786e39e7dc3e58@gmail.com>
