Menu

#895 imm: Allow class schema change to add attribute default

4.5.FC
fixed
None
enhancement
imm
nd
4.5
minor
2014-07-24
2014-05-09
No

Currently it is not allowed to add a default value to an attribute definition
that has no prior default. Only changes to an existing default are allowed.
This enhancement will remove this restriction, allowing a class schema change to
add a default to an attribute definition.

Only new instances of that class will get the default assigned when no value is
provided for the attribute at object-create time.

Old instances with a null-value for that attribute will still have a null-value
for that attribute even after the schema change. A general rule for schema
changes is that the immsv never alters the value of existing attributes as
part of a schema change. Doing so would require the OI to be notified, which is
not realistic since the shcema change is not performed as a CCB.

Related

Tickets: #895
Wiki: NEWS-4.5.0

Discussion

  • Anders Bjornerstedt

    • status: unassigned --> accepted
    • assigned_to: Anders Bjornerstedt
    • Version: --> 4.5
    • Milestone: future --> 4.5.FC
     
  • Anders Bjornerstedt

    • status: accepted --> review
     
  • Anders Bjornerstedt

    • status: review --> accepted
     
  • Anders Bjornerstedt

    • status: accepted --> review
     
  • Anders Bjornerstedt

    • status: review --> accepted
     
  • Anders Bjornerstedt

    • status: accepted --> review
     
  • Anders Bjornerstedt

    • status: review --> fixed
     
  • Anders Bjornerstedt

    changeset: 5482:6f3e4b4122dd
    tag: tip
    user: Anders Bjornerstedt anders.bjornerstedt@ericsson.com
    date: Mon Jul 21 10:47:38 2014 +0200
    summary: IMM: Allow class schema change to add attribute default [#895]

     

    Related

    Tickets: #895


Log in to post a comment.

MongoDB Logo MongoDB