Results 1 to 2 of 2

Thread: vardefs - upgrade safe changes

  1. #1
    mikesolomon is offline Sugar Community Member
    Join Date
    Feb 2008
    Location
    UK
    Posts
    1,467

    Default vardefs - upgrade safe changes

    I want to make some vardef changes in an upgrade safe manner

    In this instance I am changing Calls so that date_end is a datetime field

    I changed modules/calls/vardefs.php and it worked

    'date_end' =>
    array (
    'name' => 'date_end',
    'vname' => 'LBL_DATE_END',
    'type' => 'datetime',
    'massupdate'=>false,
    'comment' => 'Date is which call is scheduled to (or did) end'
    ),

    Once I established it did what I wanted I tried doing in in a different way

    I created a file custom/Extension/modules/Calls/Ext/Vardefs/custom.php

    and put in

    $dictionary['Call']['fields']['date_end'] = array (
    'name' => 'date_end',
    'vname' => 'LBL_DATE_END',
    'type' => 'datetime',
    'massupdate'=>false,
    'comment' => 'Date call is scheduled to (or did) end (custom)',
    );

    Then did a repair but this seems to have been ignored

    the data that shows in studio is from the original vardefs not my custom version

    In the past I have used the extension method to add one-many relationships and it works

    is it just studio that ignores the custom files?

    Just to make me more confused changing date_end to datetime in calls alterded the calls table but when I did the same in Meetings the table did not change

    If anyone could explain how it all works I would be very grateful

  2. #2
    mikesolomon is offline Sugar Community Member
    Join Date
    Feb 2008
    Location
    UK
    Posts
    1,467

    Default Re: vardefs - upgrade safe changes

    Ignore this post

    extension does work properly - I have too many copies of sugar and was repairing the wrong version

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. 5.0.0d upgrade safe customization help
    By jeffbrumbaugh in forum Installation and Upgrade Help
    Replies: 0
    Last Post: 2008-04-30, 12:20 PM
  2. Upgrade from 3.0.1 to 4.5.1b
    By bkunyiha in forum Installation and Upgrade Help
    Replies: 1
    Last Post: 2007-06-21, 11:40 PM
  3. Upgrade process review - 2.0 to 4.0
    By kimvette in forum General Discussion
    Replies: 2
    Last Post: 2007-05-22, 06:18 PM
  4. Problem: I need to upgrade with php.ini Safe Mode = ON
    By chabich in forum Installation and Upgrade Help
    Replies: 4
    Last Post: 2007-05-11, 05:18 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •