Jump to:

1160 Posts in 2621 Topics by 409 members

Upgrading SilverStripe

SilverStripe Forums » Upgrading SilverStripe » Upgrade to 2.4 and Decimal Field Issue

Ask questions about upgrading SilverStripe to the latest version.

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

Page: 1
Go to End
Author Topic: 1639 Views
  • zenmonkey
    Avatar
    Community Member
    528 Posts

    Upgrade to 2.4 and Decimal Field Issue Link to this post

    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?

  • Ingo
    Avatar
    Forum Moderator
    801 Posts

    Re: Upgrade to 2.4 and Decimal Field Issue Link to this post

    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

  • stepanov
    Avatar
    Community Member
    1 Post

    Re: Upgrade to 2.4 and Decimal Field Issue Link to this post

    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'

    1639 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.