blob: 612e14870e1994f1f0f80666d324d5d7ecc02790 (
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 CreateGroupParentXref extends \Psecio\Gatekeeper\PhinxMigration
{
protected $tableName = 'group_parent';
/**
* Migrate Up.
*/
public function up()
{
$groupXref = $this->table($this->getTableName());
$groupXref->addColumn('group_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());
}
}
|