HOME


Mini Shell 1.0
DIR: /home/dhnidqcz/journal.pragmaticsng.org/lib__47455f6/pkp/classes/migration/
Upload File :
Current File : /home/dhnidqcz/journal.pragmaticsng.org/lib__47455f6/pkp/classes/migration/Migration.php
<?php

/**
 * @file classes/migration/Migration.php
 *
 * Copyright (c) 2014-2021 Simon Fraser University
 * Copyright (c) 2000-2021 John Willinsky
 * Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
 *
 * @class Migration
 *
 * @brief Base class for PKP migrations.
 */

namespace PKP\migration;

use PKP\install\Installer;

abstract class Migration extends \Illuminate\Database\Migrations\Migration
{
    protected array $_attributes;
    protected Installer $_installer;

    /**
     * Constructor
     */
    public function __construct(Installer $installer, array $attributes)
    {
        $this->_attributes = $attributes;
        $this->_installer = $installer;
    }

    /**
     * Run the migrations.
     */
    abstract public function up(): void;

    /**
     * Reverse the migration.
     */
    abstract public function down(): void;
}