Propel icon indicating copy to clipboard operation
Propel copied to clipboard

Propel has diff issues with default values for decimal

Open dereuromark opened this issue 10 years ago • 4 comments

We had to change

<column name="tax_percentage" type="DECIMAL" size="8" scale="2" required="true" default="0.0"/>

back to

<column name="tax_percentage" type="DECIMAL" size="8" scale="2" required="true"/>

for now.

Otherwise it every time creates a noise diff for those fields on propel::diff:

ALTER TABLE `item_option`

CHANGE `tax_percentage` `tax_percentage` DECIMAL(8,2) NOT NULL;

and for other fields alike.

dereuromark avatar Jan 18 '16 16:01 dereuromark

Propel v2 or v1?

marcj avatar Jan 18 '16 17:01 marcj

Propel v2 latest, "version": "2.0.0-alpha5", "reference": "75f775cf6de41595d1240885eea5fa5d475d228d"

dereuromark avatar Jan 18 '16 18:01 dereuromark

Wrong repo :P

marcj avatar Jan 18 '16 18:01 marcj

Sry :/

dereuromark avatar Jan 18 '16 18:01 dereuromark