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

        There are no comments yet on this issue.

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development