Uploaded image for project: '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

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.0-beta1
    • 4.0-beta1
    • Generator
    • 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.

      Attachments

        Activity

          People

            tfischer Thomas Fox
            tfischer Thomas Fox
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: