Skip to content
Permalink
Browse files

Fix some of the ordering issues in postgres.

Postgres is far more pedantic about constraints, and tweaking the
fixture order helps.
  • Loading branch information...
markstory committed Sep 7, 2014
1 parent 197c479 commit ecd6ca64922f55345d3817ce3e10ec40009cd9ae
@@ -28,7 +28,7 @@ class TagFixture extends TestFixture {
* @var array
*/
public $fields = array(
'id' => ['type' => 'integer'],
'id' => ['type' => 'integer', 'null' => false],
'name' => ['type' => 'string', 'null' => false],
'_constraints' => ['primary' => ['type' => 'primary', 'columns' => ['id']]]
);
@@ -37,7 +37,8 @@ class ModelTaskTest extends TestCase {
public $fixtures = array(
'core.bake_article', 'core.bake_comment', 'core.bake_articles_bake_tag',
'core.bake_tag', 'core.user', 'core.category_thread', 'core.number_tree',
'core.counter_cache_user', 'core.counter_cache_post', 'core.articles_tag'
'core.counter_cache_user', 'core.counter_cache_post',
'core.tag', 'core.articles_tag'
);
/**
@@ -44,8 +44,8 @@ class TestTaskTest extends TestCase {
'core.article',
'core.author',
'core.comment',
'core.articles_tag',
'core.tag',
'core.articles_tag',
];
/**

0 comments on commit ecd6ca6

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