Torque
  1. Torque
  2. TORQUE-126 schema changes for 4.0
  3. TORQUE-131

remove "none" value of the attributes onUpdate and onDelete of the foreign-key element

    Details

    • Type: Sub-task Sub-task
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 4.0-beta1
    • Fix Version/s: 4.0-beta1
    • Component/s: Generator
    • Labels:
      None

      Description

      In Torque 3.3, the description of the attribute idMethod is
      <!ATTLIST foreign-key
      ...
      onUpdate (cascade|setnull|restrict|none) "none"
      onDelete (cascade|setnull|restrict|none) "none"
      >

      There is no reason to have the explicit value "none". As with other attributes (e.g. attribute "default" on the element "column"), leaving the attribute empy is more intuitive than having the string value "none".

      Therefore, the suggestion would be to change the definition to

      onUpdate (cascade|setnull|restrict) #IMPLIED
      onDelete (cascade|setnull|restrict) #IMPLIED

      or its xsd equivalent.

        Activity

        Thomas Fox created issue -
        Thomas Fox made changes -
        Field Original Value New Value
        Affects Version/s 4.0 [ 12312102 ]
        Component/s Generator [ 12310809 ]
        Thomas Fox made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Assignee Thomas Fischer [ tfischer ]
        Fix Version/s 4.0 [ 12312102 ]
        Resolution Fixed [ 1 ]
        Thomas Fox made changes -
        Summary reomove "none" value of the attributes onUpdate and onDelete of the foreign-key element remove "none" value of the attributes onUpdate and onDelete of the foreign-key element
        Thomas Fox made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Thomas Fox
            Reporter:
            Thomas Fox
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development