57 lines
908 B
PHP
57 lines
908 B
PHP
<?php
|
|
/**
|
|
* This class has been auto-generated by the Doctrine ORM Framework
|
|
*/
|
|
class AddSelfReference extends Doctrine_Migration
|
|
{
|
|
public function up()
|
|
{
|
|
$this->createTable('self_reference', array (
|
|
'id' =>
|
|
array (
|
|
'primary' => true,
|
|
'autoincrement' => true,
|
|
'type' => 'integer',
|
|
'length' => 11,
|
|
),
|
|
'name' =>
|
|
array (
|
|
'type' => 'string',
|
|
'length' => 255,
|
|
),
|
|
'user_id1' =>
|
|
array (
|
|
'type' => 'integer',
|
|
'length' => 11,
|
|
),
|
|
'user_id2' =>
|
|
array (
|
|
'type' => 'integer',
|
|
'length' => 11,
|
|
),
|
|
'parent_self_reference_id' =>
|
|
array (
|
|
'type' => 'integer',
|
|
'length' => 11,
|
|
),
|
|
'parent_self_reference_id2' =>
|
|
array (
|
|
'type' => 'integer',
|
|
'length' => 11,
|
|
),
|
|
), array (
|
|
'indexes' =>
|
|
array (
|
|
),
|
|
'primary' =>
|
|
array (
|
|
0 => 'id',
|
|
),
|
|
));
|
|
}
|
|
|
|
public function down()
|
|
{
|
|
$this->dropTable('self_reference');
|
|
}
|
|
} |