File "Migration.php"

Full Path: /home/u886502366/domains/almoasronppbags.com/public_html/newtest/wp-content/plugins/depicter/vendor/typerocket/core/src/Database/Migration.php
File size: 489 bytes
MIME-type: text/x-php
Charset: utf-8

<?php
namespace TypeRocket\Database;

abstract class Migration
{
    /** @var \wpdb */
    protected $database;
    protected $prefix;

    public function __construct(\wpdb $database)
    {
        $this->database = $database;
        $this->prefix = $database->prefix;
    }

    public function run($type)
    {
        if($type == 'up') {
            $this->up();
        } else {
            $this->down();
        }

    }

    abstract function up();
    abstract function down();
}