From 3a5f89f3e2000a79aa90ca3b1b201821448cdec2 Mon Sep 17 00:00:00 2001 From: gwoo Date: Thu, 23 Aug 2007 22:38:04 +0000 Subject: [PATCH] updating fixtures git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5573 3807eeeb-6ff5-0310-8944-8be069107fe0 --- cake/tests/fixtures/aco_fixture.php | 2 +- cake/tests/fixtures/advertisement_fixture.php | 2 +- cake/tests/fixtures/another_article_fixture.php | 2 +- cake/tests/fixtures/apple_fixture.php | 2 +- cake/tests/fixtures/aro_fixture.php | 2 +- cake/tests/fixtures/aros_aco_fixture.php | 2 +- cake/tests/fixtures/article_featured_fixture.php | 2 +- cake/tests/fixtures/article_fixture.php | 2 +- cake/tests/fixtures/attachment_fixture.php | 2 +- cake/tests/fixtures/auth_user_fixture.php | 2 +- cake/tests/fixtures/author_fixture.php | 2 +- cake/tests/fixtures/bid_fixture.php | 2 +- cake/tests/fixtures/category_fixture.php | 2 +- cake/tests/fixtures/category_thread_fixture.php | 2 +- cake/tests/fixtures/comment_fixture.php | 2 +- cake/tests/fixtures/featured_fixture.php | 2 +- cake/tests/fixtures/home_fixture.php | 2 +- cake/tests/fixtures/message_fixture.php | 2 +- cake/tests/fixtures/number_tree_fixture.php | 2 +- cake/tests/fixtures/post_fixture.php | 2 +- cake/tests/fixtures/project_fixture.php | 2 +- cake/tests/fixtures/sample_fixture.php | 2 +- cake/tests/fixtures/tag_fixture.php | 2 +- cake/tests/fixtures/thread_fixture.php | 2 +- cake/tests/fixtures/user_fixture.php | 2 +- 25 files changed, 25 insertions(+), 25 deletions(-) diff --git a/cake/tests/fixtures/aco_fixture.php b/cake/tests/fixtures/aco_fixture.php index a7361db64..38e4e3d34 100644 --- a/cake/tests/fixtures/aco_fixture.php +++ b/cake/tests/fixtures/aco_fixture.php @@ -35,7 +35,7 @@ class AcoFixture extends CakeTestFixture { var $name = 'Aco'; var $fields = array( - 'id' => array('type' => 'integer', 'key' => 'primary'), + 'id' => array('type' => 'integer', 'key' => 'primary', 'extra'=> 'auto_increment'), 'parent_id' => array('type' => 'integer', 'length' => 10, 'null' => true), 'model' => array('type' => 'string', 'default' => ''), 'foreign_key' => array('type' => 'integer', 'length' => 10, 'null' => true), diff --git a/cake/tests/fixtures/advertisement_fixture.php b/cake/tests/fixtures/advertisement_fixture.php index 0f77d5cc8..69c923337 100644 --- a/cake/tests/fixtures/advertisement_fixture.php +++ b/cake/tests/fixtures/advertisement_fixture.php @@ -35,7 +35,7 @@ class AdvertisementFixture extends CakeTestFixture { var $name = 'Advertisement'; var $fields = array( - 'id' => array('type' => 'integer', 'key' => 'primary'), + 'id' => array('type' => 'integer', 'key' => 'primary', 'extra'=> 'auto_increment'), 'title' => array('type' => 'string', 'null' => false), 'created' => 'datetime', 'updated' => 'datetime' diff --git a/cake/tests/fixtures/another_article_fixture.php b/cake/tests/fixtures/another_article_fixture.php index 1dd9a8176..50b556bde 100644 --- a/cake/tests/fixtures/another_article_fixture.php +++ b/cake/tests/fixtures/another_article_fixture.php @@ -35,7 +35,7 @@ class AnotherArticleFixture extends CakeTestFixture { var $name = 'AnotherArticle'; var $fields = array( - 'id' => array('type' => 'integer', 'key' => 'primary'), + 'id' => array('type' => 'integer', 'key' => 'primary', 'extra'=> 'auto_increment'), 'title' => array('type' => 'string', 'null' => false), 'created' => 'datetime', 'updated' => 'datetime' diff --git a/cake/tests/fixtures/apple_fixture.php b/cake/tests/fixtures/apple_fixture.php index f35cb71da..a9dd07303 100644 --- a/cake/tests/fixtures/apple_fixture.php +++ b/cake/tests/fixtures/apple_fixture.php @@ -35,7 +35,7 @@ class AppleFixture extends CakeTestFixture { var $name = 'Apple'; var $fields = array( - 'id' => array('type' => 'integer', 'key' => 'primary'), + 'id' => array('type' => 'integer', 'key' => 'primary', 'extra'=> 'auto_increment'), 'apple_id' => array('type' => 'integer', 'null' => true), 'color' => array('type' => 'string', 'length' => 40, 'null' => false), 'name' => array('type' => 'string', 'length' => 40, 'null' => false), diff --git a/cake/tests/fixtures/aro_fixture.php b/cake/tests/fixtures/aro_fixture.php index 73b054d7a..65bce68ea 100644 --- a/cake/tests/fixtures/aro_fixture.php +++ b/cake/tests/fixtures/aro_fixture.php @@ -35,7 +35,7 @@ class AroFixture extends CakeTestFixture { var $name = 'Aro'; var $fields = array( - 'id' => array('type' => 'integer', 'key' => 'primary'), + 'id' => array('type' => 'integer', 'key' => 'primary', 'extra'=> 'auto_increment'), 'parent_id' => array('type' => 'integer', 'length' => 10, 'null' => true), 'model' => array('type' => 'string', 'default' => ''), 'foreign_key' => array('type' => 'integer', 'length' => 10, 'null' => true), diff --git a/cake/tests/fixtures/aros_aco_fixture.php b/cake/tests/fixtures/aros_aco_fixture.php index d77170449..606346117 100644 --- a/cake/tests/fixtures/aros_aco_fixture.php +++ b/cake/tests/fixtures/aros_aco_fixture.php @@ -35,7 +35,7 @@ class ArosAcoFixture extends CakeTestFixture { var $name = 'ArosAco'; var $fields = array( - 'id' => array('type' => 'integer', 'key' => 'primary'), + 'id' => array('type' => 'integer', 'key' => 'primary', 'extra'=> 'auto_increment'), 'aro_id' => array('type' => 'integer', 'length' => 10, 'null' => false), 'aco_id' => array('type' => 'integer', 'length' => 10, 'null' => false), '_create' => array('type' => 'string', 'length' => 2, 'null' => false, 'default' => '0'), diff --git a/cake/tests/fixtures/article_featured_fixture.php b/cake/tests/fixtures/article_featured_fixture.php index 39aef2927..5e41f278e 100644 --- a/cake/tests/fixtures/article_featured_fixture.php +++ b/cake/tests/fixtures/article_featured_fixture.php @@ -35,7 +35,7 @@ class ArticleFeaturedFixture extends CakeTestFixture { var $name = 'ArticleFeatured'; var $fields = array( - 'id' => array('type' => 'integer', 'key' => 'primary'), + 'id' => array('type' => 'integer', 'key' => 'primary', 'extra'=> 'auto_increment'), 'user_id' => array('type' => 'integer', 'null' => false), 'title' => array('type' => 'string', 'null' => false), 'body' => 'text', diff --git a/cake/tests/fixtures/article_fixture.php b/cake/tests/fixtures/article_fixture.php index 84a02447e..e45506993 100644 --- a/cake/tests/fixtures/article_fixture.php +++ b/cake/tests/fixtures/article_fixture.php @@ -35,7 +35,7 @@ class ArticleFixture extends CakeTestFixture { var $name = 'Article'; var $fields = array( - 'id' => array('type' => 'integer', 'key' => 'primary'), + 'id' => array('type' => 'integer', 'key' => 'primary', 'extra'=> 'auto_increment'), 'user_id' => array('type' => 'integer', 'null' => false), 'title' => array('type' => 'string', 'null' => false), 'body' => 'text', diff --git a/cake/tests/fixtures/attachment_fixture.php b/cake/tests/fixtures/attachment_fixture.php index 37085a2ef..e34ecc429 100644 --- a/cake/tests/fixtures/attachment_fixture.php +++ b/cake/tests/fixtures/attachment_fixture.php @@ -35,7 +35,7 @@ class AttachmentFixture extends CakeTestFixture { var $name = 'Attachment'; var $fields = array( - 'id' => array('type' => 'integer', 'key' => 'primary'), + 'id' => array('type' => 'integer', 'key' => 'primary', 'extra'=> 'auto_increment'), 'comment_id' => array('type' => 'integer', 'null' => false), 'attachment' => array('type' => 'string', 'null' => false), 'created' => 'datetime', diff --git a/cake/tests/fixtures/auth_user_fixture.php b/cake/tests/fixtures/auth_user_fixture.php index 59c48eea0..c7476ba29 100644 --- a/cake/tests/fixtures/auth_user_fixture.php +++ b/cake/tests/fixtures/auth_user_fixture.php @@ -35,7 +35,7 @@ class AuthUserFixture extends CakeTestFixture { var $name = 'AuthUser'; var $fields = array( - 'id' => array('type' => 'integer', 'key' => 'primary'), + 'id' => array('type' => 'integer', 'key' => 'primary', 'extra'=> 'auto_increment'), 'username' => array('type' => 'string', 'null' => false), 'password' => array('type' => 'string', 'null' => false), 'created' => 'datetime', diff --git a/cake/tests/fixtures/author_fixture.php b/cake/tests/fixtures/author_fixture.php index 445dea916..b359ac7c8 100644 --- a/cake/tests/fixtures/author_fixture.php +++ b/cake/tests/fixtures/author_fixture.php @@ -35,7 +35,7 @@ class AuthorFixture extends CakeTestFixture { var $name = 'Author'; var $fields = array( - 'id' => array('type' => 'integer', 'key' => 'primary'), + 'id' => array('type' => 'integer', 'key' => 'primary', 'extra'=> 'auto_increment'), 'user' => array('type' => 'string', 'null' => false), 'password' => array('type' => 'string', 'null' => false), 'created' => 'datetime', diff --git a/cake/tests/fixtures/bid_fixture.php b/cake/tests/fixtures/bid_fixture.php index c961786cc..065018731 100644 --- a/cake/tests/fixtures/bid_fixture.php +++ b/cake/tests/fixtures/bid_fixture.php @@ -35,7 +35,7 @@ class BidFixture extends CakeTestFixture { var $name = 'Bid'; var $fields = array( - 'id' => array('type' => 'integer', 'key' => 'primary'), + 'id' => array('type' => 'integer', 'key' => 'primary', 'extra'=> 'auto_increment'), 'message_id' => array('type' => 'integer', 'null' => false), 'name' => array('type' => 'string', 'null' => false) ); diff --git a/cake/tests/fixtures/category_fixture.php b/cake/tests/fixtures/category_fixture.php index d2621083e..9aebbc780 100644 --- a/cake/tests/fixtures/category_fixture.php +++ b/cake/tests/fixtures/category_fixture.php @@ -35,7 +35,7 @@ class CategoryFixture extends CakeTestFixture { var $name = 'Category'; var $fields = array( - 'id' => array('type' => 'integer', 'key' => 'primary'), + 'id' => array('type' => 'integer', 'key' => 'primary', 'extra'=> 'auto_increment'), 'parent_id' => array('type' => 'integer', 'null' => false), 'name' => array('type' => 'string', 'null' => false), 'created' => 'datetime', diff --git a/cake/tests/fixtures/category_thread_fixture.php b/cake/tests/fixtures/category_thread_fixture.php index 1e20a0bb2..bd66de9f8 100644 --- a/cake/tests/fixtures/category_thread_fixture.php +++ b/cake/tests/fixtures/category_thread_fixture.php @@ -35,7 +35,7 @@ class CategoryThreadFixture extends CakeTestFixture { var $name = 'CategoryThread'; var $fields = array( - 'id' => array('type' => 'integer', 'key' => 'primary'), + 'id' => array('type' => 'integer', 'key' => 'primary', 'extra'=> 'auto_increment'), 'parent_id' => array('type' => 'integer', 'null' => false), 'name' => array('type' => 'string', 'null' => false), 'created' => 'datetime', diff --git a/cake/tests/fixtures/comment_fixture.php b/cake/tests/fixtures/comment_fixture.php index 9f2eacece..c69ffbfc7 100644 --- a/cake/tests/fixtures/comment_fixture.php +++ b/cake/tests/fixtures/comment_fixture.php @@ -35,7 +35,7 @@ class CommentFixture extends CakeTestFixture { var $name = 'Comment'; var $fields = array( - 'id' => array('type' => 'integer', 'key' => 'primary'), + 'id' => array('type' => 'integer', 'key' => 'primary', 'extra'=> 'auto_increment'), 'article_id' => array('type' => 'integer', 'null'=>false), 'user_id' => array('type' => 'integer', 'null'=>false), 'comment' => 'text', diff --git a/cake/tests/fixtures/featured_fixture.php b/cake/tests/fixtures/featured_fixture.php index 8bf39e58b..a97f5f855 100644 --- a/cake/tests/fixtures/featured_fixture.php +++ b/cake/tests/fixtures/featured_fixture.php @@ -35,7 +35,7 @@ class FeaturedFixture extends CakeTestFixture { var $name = 'Featured'; var $fields = array( - 'id' => array('type' => 'integer', 'key' => 'primary'), + 'id' => array('type' => 'integer', 'key' => 'primary', 'extra'=> 'auto_increment'), 'article_featured_id' => array('type' => 'integer', 'null' => false), 'category_id' => array('type' => 'integer', 'null' => false), 'published_date' => 'datetime', diff --git a/cake/tests/fixtures/home_fixture.php b/cake/tests/fixtures/home_fixture.php index 09e4ab398..f3f07de0b 100644 --- a/cake/tests/fixtures/home_fixture.php +++ b/cake/tests/fixtures/home_fixture.php @@ -35,7 +35,7 @@ class HomeFixture extends CakeTestFixture { var $name = 'Home'; var $fields = array( - 'id' => array('type' => 'integer', 'key' => 'primary'), + 'id' => array('type' => 'integer', 'key' => 'primary', 'extra'=> 'auto_increment'), 'another_article_id' => array('type' => 'integer', 'null' => false), 'advertisement_id' => array('type' => 'integer', 'null' => false), 'title' => array('type' => 'string', 'null' => false), diff --git a/cake/tests/fixtures/message_fixture.php b/cake/tests/fixtures/message_fixture.php index 3960a1e8b..6e86be662 100644 --- a/cake/tests/fixtures/message_fixture.php +++ b/cake/tests/fixtures/message_fixture.php @@ -35,7 +35,7 @@ class MessageFixture extends CakeTestFixture { var $name = 'Message'; var $fields = array( - 'id' => array('type' => 'integer', 'key' => 'primary'), + 'id' => array('type' => 'integer', 'key' => 'primary', 'extra'=> 'auto_increment'), 'thread_id' => array('type' => 'integer', 'null' => false), 'name' => array('type' => 'string', 'null' => false) ); diff --git a/cake/tests/fixtures/number_tree_fixture.php b/cake/tests/fixtures/number_tree_fixture.php index e8687dbbf..17c0d467c 100644 --- a/cake/tests/fixtures/number_tree_fixture.php +++ b/cake/tests/fixtures/number_tree_fixture.php @@ -37,7 +37,7 @@ class NumberTreeFixture extends CakeTestFixture { var $name = 'NumberTree'; var $fields = array ( 'id' => array ( - 'type' => 'integer','key' => 'primary'), + 'type' => 'integer','key' => 'primary', 'extra'=> 'auto_increment'), 'name' => array ('type' => 'string','null' => false), 'parent_id' => 'integer', 'lft' => array ('type' => 'integer','null' => false), diff --git a/cake/tests/fixtures/post_fixture.php b/cake/tests/fixtures/post_fixture.php index 2111c214c..e8d799522 100644 --- a/cake/tests/fixtures/post_fixture.php +++ b/cake/tests/fixtures/post_fixture.php @@ -35,7 +35,7 @@ class PostFixture extends CakeTestFixture { var $name = 'Post'; var $fields = array( - 'id' => array('type' => 'integer', 'key' => 'primary'), + 'id' => array('type' => 'integer', 'key' => 'primary', 'extra'=> 'auto_increment'), 'author_id' => array('type' => 'integer', 'null' => false), 'title' => array('type' => 'string', 'null' => false), 'body' => 'text', diff --git a/cake/tests/fixtures/project_fixture.php b/cake/tests/fixtures/project_fixture.php index 12b5e2961..f68acfe48 100644 --- a/cake/tests/fixtures/project_fixture.php +++ b/cake/tests/fixtures/project_fixture.php @@ -35,7 +35,7 @@ class ProjectFixture extends CakeTestFixture { var $name = 'Project'; var $fields = array( - 'id' => array('type' => 'integer', 'key' => 'primary'), + 'id' => array('type' => 'integer', 'key' => 'primary', 'extra'=> 'auto_increment'), 'name' => array('type' => 'string', 'null' => false) ); var $records = array( diff --git a/cake/tests/fixtures/sample_fixture.php b/cake/tests/fixtures/sample_fixture.php index abea457ed..2baf827e8 100644 --- a/cake/tests/fixtures/sample_fixture.php +++ b/cake/tests/fixtures/sample_fixture.php @@ -35,7 +35,7 @@ class SampleFixture extends CakeTestFixture { var $name = 'Sample'; var $fields = array( - 'id' => array('type' => 'integer', 'key' => 'primary'), + 'id' => array('type' => 'integer', 'key' => 'primary', 'extra'=> 'auto_increment'), 'apple_id' => array('type' => 'integer', 'null' => false), 'name' => array('type' => 'string', 'length' => 40, 'null' => false) ); diff --git a/cake/tests/fixtures/tag_fixture.php b/cake/tests/fixtures/tag_fixture.php index 0a477d748..9c0fe8d80 100644 --- a/cake/tests/fixtures/tag_fixture.php +++ b/cake/tests/fixtures/tag_fixture.php @@ -35,7 +35,7 @@ class TagFixture extends CakeTestFixture { var $name = 'Tag'; var $fields = array( - 'id' => array('type' => 'integer', 'key' => 'primary'), + 'id' => array('type' => 'integer', 'key' => 'primary', 'extra'=> 'auto_increment'), 'tag' => array('type' => 'string', 'null' => false), 'created' => 'datetime', 'updated' => 'datetime' diff --git a/cake/tests/fixtures/thread_fixture.php b/cake/tests/fixtures/thread_fixture.php index 77a7e536c..3b5303ce5 100644 --- a/cake/tests/fixtures/thread_fixture.php +++ b/cake/tests/fixtures/thread_fixture.php @@ -35,7 +35,7 @@ class ThreadFixture extends CakeTestFixture { var $name = 'Thread'; var $fields = array( - 'id' => array('type' => 'integer', 'key' => 'primary'), + 'id' => array('type' => 'integer', 'key' => 'primary', 'extra'=> 'auto_increment'), 'project_id' => array('type' => 'integer', 'null' => false), 'name' => array('type' => 'string', 'null' => false) ); diff --git a/cake/tests/fixtures/user_fixture.php b/cake/tests/fixtures/user_fixture.php index 31c80cdf1..aab1dd50e 100644 --- a/cake/tests/fixtures/user_fixture.php +++ b/cake/tests/fixtures/user_fixture.php @@ -35,7 +35,7 @@ class UserFixture extends CakeTestFixture { var $name = 'User'; var $fields = array( - 'id' => array('type' => 'integer', 'key' => 'primary'), + 'id' => array('type' => 'integer', 'key' => 'primary', 'extra'=> 'auto_increment'), 'user' => array('type' => 'string', 'null' => false), 'password' => array('type' => 'string', 'null' => false), 'created' => 'datetime',