Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
doctrine-dbal
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tomáš Trávníček
doctrine-dbal
Commits
3f0d5bf0
Commit
3f0d5bf0
authored
Oct 20, 2007
by
Jonathan.Wage
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed.
parent
975b74bd
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
0 additions
and
315 deletions
+0
-315
contact.yml
sandbox/data/fixtures/contact.yml
+0
-4
user.yml
sandbox/data/fixtures/user.yml
+0
-6
008_add_self_reference.class.php
sandbox/migrations/008_add_self_reference.class.php
+0
-57
009_add_user.class.php
sandbox/migrations/009_add_user.class.php
+0
-60
010_add_user_car.class.php
sandbox/migrations/010_add_user_car.class.php
+0
-38
011_add_user_group.class.php
sandbox/migrations/011_add_user_group.class.php
+0
-38
012_apply_foreign_key_constraints.class.php
...ox/migrations/012_apply_foreign_key_constraints.class.php
+0
-112
No files found.
sandbox/data/fixtures/contact.yml
deleted
100644 → 0
View file @
975b74bd
---
Contact
:
Contact_1
:
name
:
Jonathan H. Wage
sandbox/data/fixtures/user.yml
deleted
100644 → 0
View file @
975b74bd
---
User
:
User_1
:
username
:
jonwage
hair_color
:
brown
Contact
:
Contact_1
sandbox/migrations/008_add_self_reference.class.php
deleted
100644 → 0
View file @
975b74bd
<?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'
);
}
}
\ No newline at end of file
sandbox/migrations/009_add_user.class.php
deleted
100644 → 0
View file @
975b74bd
<?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'
);
}
}
\ No newline at end of file
sandbox/migrations/010_add_user_car.class.php
deleted
100644 → 0
View file @
975b74bd
<?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'
);
}
}
\ No newline at end of file
sandbox/migrations/011_add_user_group.class.php
deleted
100644 → 0
View file @
975b74bd
<?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'
);
}
}
\ No newline at end of file
sandbox/migrations/012_apply_foreign_key_constraints.class.php
deleted
100644 → 0
View file @
975b74bd
<?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'
);
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment