psecio/gatekeeper

View on GitHub
migrations/20150702224804_add_permission_group_expire.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

use Phinx\Migration\AbstractMigration;

class AddPermissionGroupExpire extends \Psecio\Gatekeeper\PhinxMigration
{
    /**
     * Migrate Up.
     */
    public function up()
    {
        $this->execute('alter table permissions add expire INT');
        $this->execute('alter table groups add expire INT');
    }

    /**
     * Migrate Down.
     */
    public function down()
    {
        $this->execute('alter table permissions drop column expire');
        $this->execute('alter table groups drop column expire');
    }
}