Skip to content
Permalink
Browse files

Update fixtures to use uuid column type.

  • Loading branch information...
markstory committed Nov 10, 2013
1 parent d8ed000 commit 0fdc332e11aed07bef90dab61d9eac7fac49b340
@@ -32,8 +32,8 @@ class FruitsUuidTagFixture extends TestFixture {
* @var array
*/
public $fields = array(
'fruit_id' => ['type' => 'string', 'null' => false, 'length' => 36],
'uuid_tag_id' => ['type' => 'string', 'null' => false, 'length' => 36],
'fruit_id' => ['type' => 'uuid', 'null' => false],
'uuid_tag_id' => ['type' => 'uuid', 'null' => false],
'_constraints' => ['primary' => ['type' => 'primary', 'columns' => ['uuid_tag_id']], 'unique_fruits_tags' => ['type' => 'unique', 'columns' => ['fruit_id', 'uuid_tag_id']]]
);
@@ -32,7 +32,7 @@ class UuidFixture extends TestFixture {
* @var array
*/
public $fields = array(
'id' => ['type' => 'string', 'length' => 36],
'id' => ['type' => 'uuid'],
'title' => 'string',
'count' => ['type' => 'integer', 'default' => 0],
'created' => 'datetime',
@@ -32,7 +32,7 @@ class UuidTagFixture extends TestFixture {
* @var array
*/
public $fields = array(
'id' => ['type' => 'string', 'length' => 36],
'id' => ['type' => 'uuid'],
'name' => ['type' => 'string', 'length' => 255],
'created' => ['type' => 'datetime'],
'_constraints' => ['primary' => ['type' => 'primary', 'columns' => ['id']]]
@@ -33,9 +33,9 @@ class UuidTreeFixture extends TestFixture {
* @var array
*/
public $fields = array(
'id' => ['type' => 'string', 'length' => 36],
'id' => ['type' => 'uuid'],
'name' => ['type' => 'string', 'null' => false],
'parent_id' => ['type' => 'string', 'length' => 36, 'null' => true],
'parent_id' => ['type' => 'uuid', 'null' => true],
'lft' => ['type' => 'integer', 'null' => false],
'rght' => ['type' => 'integer', 'null' => false],
'_constraints' => ['primary' => ['type' => 'primary', 'columns' => ['id']]]
@@ -32,7 +32,7 @@ class UuiditemFixture extends TestFixture {
* @var array
*/
public $fields = array(
'id' => ['type' => 'string', 'length' => 36],
'id' => ['type' => 'uuid'],
'published' => ['type' => 'boolean', 'null' => false],
'name' => ['type' => 'string', 'null' => false],
'_constraints' => ['primary' => ['type' => 'primary', 'columns' => ['id']]]
@@ -32,9 +32,9 @@ class UuiditemsUuidportfolioFixture extends TestFixture {
* @var array
*/
public $fields = array(
'id' => ['type' => 'string', 'length' => 36],
'uuiditem_id' => ['type' => 'string', 'length' => 36, 'null' => false],
'uuidportfolio_id' => ['type' => 'string', 'length' => 36, 'null' => false],
'id' => ['type' => 'uuid'],
'uuiditem_id' => ['type' => 'uuid', 'null' => false],
'uuidportfolio_id' => ['type' => 'uuid', 'null' => false],
'_constraints' => ['primary' => ['type' => 'primary', 'columns' => ['id']]]
);
@@ -33,8 +33,8 @@ class UuiditemsUuidportfolioNumericidFixture extends TestFixture {
*/
public $fields = array(
'id' => ['type' => 'integer', 'length' => 10],
'uuiditem_id' => ['type' => 'string', 'length' => 36, 'null' => false],
'uuidportfolio_id' => ['type' => 'string', 'length' => 36, 'null' => false],
'uuiditem_id' => ['type' => 'uuid', 'null' => false],
'uuidportfolio_id' => ['type' => 'uuid', 'null' => false],
'_constraints' => ['primary' => ['type' => 'primary', 'columns' => ['id']]]
);
@@ -32,7 +32,7 @@ class UuidportfolioFixture extends TestFixture {
* @var array
*/
public $fields = array(
'id' => ['type' => 'string', 'length' => 36],
'id' => ['type' => 'uuid'],
'name' => ['type' => 'string', 'null' => false],
'_constraints' => ['primary' => ['type' => 'primary', 'columns' => ['id']]]
);

0 comments on commit 0fdc332

Please sign in to comment.
You can’t perform that action at this time.