From e2962c73dc092d4859b8da88f1614829cae8fb9b Mon Sep 17 00:00:00 2001 From: beberlei Date: Sat, 31 Oct 2009 22:24:29 +0000 Subject: [PATCH] [2.0] DDC-84 - Add Mysql Platform unittests for incremental changes of the metadata for the schematool update function. Fixed some quirks in the Unit-Test suite alongside, Fixed changes of length in SchemaTool update - Changes in two files were missing. --- tests/Doctrine/Tests/Models/CMS/CmsAddress.php | 5 +++++ tests/Doctrine/Tests/Models/Generic/DecimalModel.php | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/Doctrine/Tests/Models/CMS/CmsAddress.php b/tests/Doctrine/Tests/Models/CMS/CmsAddress.php index 3e7bb9e02..6fb057f38 100644 --- a/tests/Doctrine/Tests/Models/CMS/CmsAddress.php +++ b/tests/Doctrine/Tests/Models/CMS/CmsAddress.php @@ -33,6 +33,11 @@ class CmsAddress */ public $city; + /** + * Testfield for Schema Updating Tests. + */ + public $street; + /** * @OneToOne(targetEntity="CmsUser") * @JoinColumn(name="user_id", referencedColumnName="id") diff --git a/tests/Doctrine/Tests/Models/Generic/DecimalModel.php b/tests/Doctrine/Tests/Models/Generic/DecimalModel.php index a401c1975..f575b602b 100644 --- a/tests/Doctrine/Tests/Models/Generic/DecimalModel.php +++ b/tests/Doctrine/Tests/Models/Generic/DecimalModel.php @@ -14,7 +14,7 @@ class DecimalModel */ public $id; /** - * @Column(type="decimal", scale=5, precision=2) + * @Column(type="decimal", scale=2, precision=5) */ public $decimal; } \ No newline at end of file