1
0
mirror of synced 2025-01-08 10:07:10 +03:00
doctrine2/sandbox/migrations/008_add_self_reference.class.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');
}
}