Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Upgrading SilverStripe /

Ask questions about upgrading SilverStripe to the latest version.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Upgrade to 2.4 and Decimal Field Issue


Go to End


3 Posts   2470 Views

Avatar
zenmonkey

Community Member, 545 Posts

6 May 2010 at 1:48am

I've upgraded to 2.4 and every time I do a dev/build I get the following change to my DB

Field ColorProduct.Price: changed to decimal(9,2) not null default 0 (from decimal(9,2) not null default 0.00)

Do I need to change the way I'm defining that Data Field?

Avatar
Ingo

Forum Moderator, 801 Posts

7 May 2010 at 5:05pm

Thats a bug, but nothing to do with the actual schema (its presentational, change detection): I've filed a ticket for it, http://open.silverstripe.org/ticket/5551

Avatar
stepanov

Community Member, 1 Post

28 August 2010 at 12:17pm


I have changed type of this field on float

1) RecurringPayment.php line 6 'Amount' => 'Float', //Stepanov old: 'Money'
2) Payment.php line 25 'Amount' => 'Float', //Stepanov old: 'Money'
3) DPSRecurringPayment.php line 12 'AuthAmount' => 'Float', //Stepanov old 'Decimal'