[2.0][DDC-88] Corrected accidental swap of precision/scale.
This commit is contained in:
parent
44045a6b83
commit
94569baa0b
@ -14,7 +14,7 @@ class DecimalModel
|
||||
*/
|
||||
public $id;
|
||||
/**
|
||||
* @Column(name="`decimal`", type="decimal", scale=5, precision=2)
|
||||
* @Column(name="`decimal`", type="decimal", scale=2, precision=5)
|
||||
*/
|
||||
public $decimal;
|
||||
}
|
@ -47,7 +47,7 @@ class MySqlSchemaToolTest extends \Doctrine\Tests\OrmFunctionalTestCase
|
||||
$sql = $tool->getCreateSchemaSql($classes);
|
||||
|
||||
$this->assertEquals(1, count($sql));
|
||||
$this->assertEquals("CREATE TABLE decimal_model (id INT AUTO_INCREMENT NOT NULL, `decimal` NUMERIC(2, 5) NOT NULL, PRIMARY KEY(id)) ENGINE = InnoDB", $sql[0]);
|
||||
$this->assertEquals("CREATE TABLE decimal_model (id INT AUTO_INCREMENT NOT NULL, `decimal` NUMERIC(5, 2) NOT NULL, PRIMARY KEY(id)) ENGINE = InnoDB", $sql[0]);
|
||||
}
|
||||
|
||||
public function testGetCreateSchemaSql3()
|
||||
|
Loading…
x
Reference in New Issue
Block a user