blob: 21d157eb6d2f60cfe96d040314e3786e57d25830 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
<?php
class CreatePermissionParentXref extends \Psecio\Gatekeeper\PhinxMigration
{
protected $tableName = 'permission_parent';
/**
* Migrate Up.
*/
public function up()
{
$permissionXref = $this->table($this->getTableName());
$permissionXref->addColumn('permission_id', 'integer')
->addColumn('parent_id', 'integer')
->addColumn('created', 'datetime')
->addColumn('updated', 'datetime', array('default' => null))
->save();
}
/**
* Migrate Down.
*/
public function down()
{
$this->dropTable($this->getTableName());
}
}
|