Removed.
This commit is contained in:
parent
975b74bd6f
commit
3f0d5bf01e
@ -1,4 +0,0 @@
|
||||
---
|
||||
Contact:
|
||||
Contact_1:
|
||||
name: Jonathan H. Wage
|
@ -1,6 +0,0 @@
|
||||
---
|
||||
User:
|
||||
User_1:
|
||||
username: jonwage
|
||||
hair_color: brown
|
||||
Contact: Contact_1
|
@ -1,57 +0,0 @@
|
||||
<?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');
|
||||
}
|
||||
}
|
@ -1,60 +0,0 @@
|
||||
<?php
|
||||
/**
|
||||
* This class has been auto-generated by the Doctrine ORM Framework
|
||||
*/
|
||||
class AddUser extends Doctrine_Migration
|
||||
{
|
||||
public function up()
|
||||
{
|
||||
$this->createTable('user', array (
|
||||
'id' =>
|
||||
array (
|
||||
'primary' => true,
|
||||
'autoincrement' => true,
|
||||
'type' => 'integer',
|
||||
'length' => 11,
|
||||
),
|
||||
'username' =>
|
||||
array (
|
||||
'type' => 'string',
|
||||
'length' => 255,
|
||||
),
|
||||
'hair_color' =>
|
||||
array (
|
||||
'type' => 'string',
|
||||
'length' => 255,
|
||||
),
|
||||
'contact_id' =>
|
||||
array (
|
||||
'type' => 'integer',
|
||||
'length' => 11,
|
||||
),
|
||||
), array (
|
||||
'indexes' =>
|
||||
array (
|
||||
'name_x' =>
|
||||
array (
|
||||
'fields' =>
|
||||
array (
|
||||
'username' =>
|
||||
array (
|
||||
'sorting' => 'ASC',
|
||||
'length' => '11',
|
||||
'primary' => true,
|
||||
),
|
||||
),
|
||||
'type' => 'unique',
|
||||
),
|
||||
),
|
||||
'primary' =>
|
||||
array (
|
||||
0 => 'id',
|
||||
),
|
||||
));
|
||||
}
|
||||
|
||||
public function down()
|
||||
{
|
||||
$this->dropTable('user');
|
||||
}
|
||||
}
|
@ -1,38 +0,0 @@
|
||||
<?php
|
||||
/**
|
||||
* This class has been auto-generated by the Doctrine ORM Framework
|
||||
*/
|
||||
class AddUserCar extends Doctrine_Migration
|
||||
{
|
||||
public function up()
|
||||
{
|
||||
$this->createTable('user_car', array (
|
||||
'user_id' =>
|
||||
array (
|
||||
'primary' => true,
|
||||
'type' => 'integer',
|
||||
'length' => 11,
|
||||
),
|
||||
'car_id' =>
|
||||
array (
|
||||
'primary' => true,
|
||||
'type' => 'integer',
|
||||
'length' => 11,
|
||||
),
|
||||
), array (
|
||||
'indexes' =>
|
||||
array (
|
||||
),
|
||||
'primary' =>
|
||||
array (
|
||||
0 => 'user_id',
|
||||
1 => 'car_id',
|
||||
),
|
||||
));
|
||||
}
|
||||
|
||||
public function down()
|
||||
{
|
||||
$this->dropTable('user_car');
|
||||
}
|
||||
}
|
@ -1,38 +0,0 @@
|
||||
<?php
|
||||
/**
|
||||
* This class has been auto-generated by the Doctrine ORM Framework
|
||||
*/
|
||||
class AddUserGroup extends Doctrine_Migration
|
||||
{
|
||||
public function up()
|
||||
{
|
||||
$this->createTable('user_group', array (
|
||||
'user_id' =>
|
||||
array (
|
||||
'primary' => true,
|
||||
'type' => 'integer',
|
||||
'length' => 11,
|
||||
),
|
||||
'group_id' =>
|
||||
array (
|
||||
'primary' => true,
|
||||
'type' => 'integer',
|
||||
'length' => 11,
|
||||
),
|
||||
), array (
|
||||
'indexes' =>
|
||||
array (
|
||||
),
|
||||
'primary' =>
|
||||
array (
|
||||
0 => 'user_id',
|
||||
1 => 'group_id',
|
||||
),
|
||||
));
|
||||
}
|
||||
|
||||
public function down()
|
||||
{
|
||||
$this->dropTable('user_group');
|
||||
}
|
||||
}
|
@ -1,112 +0,0 @@
|
||||
<?php
|
||||
/**
|
||||
* This class has been auto-generated by the Doctrine ORM Framework
|
||||
*/
|
||||
class ApplyForeignKeyConstraints extends Doctrine_Migration
|
||||
{
|
||||
public function up()
|
||||
{
|
||||
$this->createForeignKey('adult', array (
|
||||
'local' => 'contact_id',
|
||||
'foreign' => 'id',
|
||||
'foreignTable' => 'contact',
|
||||
'onUpdate' => NULL,
|
||||
'onDelete' => NULL,
|
||||
'name' => 'adult_contact_contact_id_id',
|
||||
)); $this->createForeignKey('child', array (
|
||||
'local' => 'adult_id',
|
||||
'foreign' => 'id',
|
||||
'foreignTable' => 'adult',
|
||||
'onUpdate' => NULL,
|
||||
'onDelete' => NULL,
|
||||
'name' => 'child_adult_adult_id_id',
|
||||
)); $this->createForeignKey('dog', array (
|
||||
'local' => 'user_id',
|
||||
'foreign' => 'id',
|
||||
'foreignTable' => 'user',
|
||||
'onUpdate' => NULL,
|
||||
'onDelete' => NULL,
|
||||
'name' => 'dog_user_user_id_id',
|
||||
)); $this->createForeignKey('self_reference', array (
|
||||
'local' => 'user_id1',
|
||||
'foreign' => 'id',
|
||||
'foreignTable' => 'user',
|
||||
'onUpdate' => NULL,
|
||||
'onDelete' => NULL,
|
||||
'name' => 'self_reference_user_user_id1_id',
|
||||
)); $this->createForeignKey('self_reference', array (
|
||||
'local' => 'user_id2',
|
||||
'foreign' => 'id',
|
||||
'foreignTable' => 'user',
|
||||
'onUpdate' => NULL,
|
||||
'onDelete' => NULL,
|
||||
'name' => 'self_reference_user_user_id2_id',
|
||||
)); $this->createForeignKey('self_reference', array (
|
||||
'local' => 'parent_self_reference_id',
|
||||
'foreign' => 'id',
|
||||
'foreignTable' => 'self_reference',
|
||||
'onUpdate' => NULL,
|
||||
'onDelete' => NULL,
|
||||
'name' => 'self_reference_self_reference_parent_self_reference_id_id',
|
||||
)); $this->createForeignKey('self_reference', array (
|
||||
'local' => 'parent_self_reference_id2',
|
||||
'foreign' => 'id',
|
||||
'foreignTable' => 'self_reference',
|
||||
'onUpdate' => NULL,
|
||||
'onDelete' => NULL,
|
||||
'name' => 'self_reference_self_reference_parent_self_reference_id2_id',
|
||||
)); $this->createForeignKey('user', array (
|
||||
'local' => 'contact_id',
|
||||
'foreign' => 'id',
|
||||
'foreignTable' => 'contact',
|
||||
'onUpdate' => NULL,
|
||||
'onDelete' => NULL,
|
||||
'name' => 'user_contact_contact_id_id',
|
||||
)); $this->createForeignKey('user_car', array (
|
||||
'local' => 'user_id',
|
||||
'foreign' => 'id',
|
||||
'foreignTable' => 'user',
|
||||
'onUpdate' => NULL,
|
||||
'onDelete' => NULL,
|
||||
'name' => 'user_car_user_user_id_id',
|
||||
)); $this->createForeignKey('user_car', array (
|
||||
'local' => 'car_id',
|
||||
'foreign' => 'id',
|
||||
'foreignTable' => 'car',
|
||||
'onUpdate' => NULL,
|
||||
'onDelete' => NULL,
|
||||
'name' => 'user_car_car_car_id_id',
|
||||
)); $this->createForeignKey('user_group', array (
|
||||
'local' => 'user_id',
|
||||
'foreign' => 'id',
|
||||
'foreignTable' => 'user',
|
||||
'onUpdate' => NULL,
|
||||
'onDelete' => NULL,
|
||||
'name' => 'user_group_user_user_id_id',
|
||||
)); $this->createForeignKey('user_group', array (
|
||||
'local' => 'group_id',
|
||||
'foreign' => 'id',
|
||||
'foreignTable' => 'groups',
|
||||
'onUpdate' => NULL,
|
||||
'onDelete' => NULL,
|
||||
'name' => 'user_group_groups_group_id_id',
|
||||
));
|
||||
}
|
||||
|
||||
public function down()
|
||||
{
|
||||
$this->dropForeignKey('adult', 'adult_contact_contact_id_id');
|
||||
$this->dropForeignKey('child', 'child_adult_adult_id_id');
|
||||
$this->dropForeignKey('dog', 'dog_user_user_id_id');
|
||||
$this->dropForeignKey('self_reference', 'self_reference_user_user_id1_id');
|
||||
$this->dropForeignKey('self_reference', 'self_reference_user_user_id2_id');
|
||||
$this->dropForeignKey('self_reference', 'self_reference_self_reference_parent_self_reference_id_id');
|
||||
$this->dropForeignKey('self_reference', 'self_reference_self_reference_parent_self_reference_id2_id');
|
||||
$this->dropForeignKey('user', 'user_contact_contact_id_id');
|
||||
$this->dropForeignKey('user_car', 'user_car_user_user_id_id');
|
||||
$this->dropForeignKey('user_car', 'user_car_car_car_id_id');
|
||||
$this->dropForeignKey('user_group', 'user_group_user_user_id_id');
|
||||
$this->dropForeignKey('user_group', 'user_group_groups_group_id_id');
|
||||
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user